How can I bind a customer table to webgrid

1 reply. Last post: April 23, 2010 12:06 PM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
gao yixinMember

How can I bind a customer table to webgrid,for example:

        DataTable dt = new DataTable();
        DataColumn dc = new DataColumn("ID", typeof(int));
        dt.Columns.Add(dc);
        dt.Rows.Add(1);
        dt.Rows.Add(1);
        dt.Rows.Add(2);
        dt.Rows.Add(3);
        dt.Rows.Add(4);
        dt.Rows.Add(5);
        dt.Rows.Add(1);

 

All times are GMT -5. The time now is 9:20 AM.
Previous Next