How to create a DataTable for bind Data
private static DataTable CreateDataTable()
{
DataTable table = new DataTable();
table.Columns.Add(AccountNumb, typeof(Int64));
table.Columns.Add(Name, typeof(string));
table.Columns.Add(Owner Address, typeof(string));
table.Rows.Add("001225", "Gustavo Santaolalla", " frederick burner");
table.Rows.Add("001220", "Gustavo Santaolalla", " frederick burner");
return table;
}
No comments:
Post a Comment