private void AddOrder(ref DataTable dtb)
{
DataColumn dc = new DataColumn();
dtb.Columns.Add("Order");
for (int i = 1; i <= dtb.Rows.Count; i++)
{
dtb.Rows[i - 1]["Order"] = i;
}
}
Showing posts with label Datatable. Show all posts
Showing posts with label Datatable. Show all posts
Sunday, December 20, 2009
Adding order to Datatable in Ado.net
เขียนโดย
abcomp01
ที่
6:07 PM
0
ความคิดเห็น
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Subscribe to:
Posts (Atom)