iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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);
Hi Gao YiXin,
Attached is a simple sample on how to bind WebGrid to DataTable. We will need to declare them in WebGrid_InitializeDataSource on server side and retrieve the WebGrid Structure in PrepareDataBinding. In that particular sample, I used Northwind data set of categories data table. Kindly download , try and let me know if it meets your scenario.
I hope it helps. Thank you and have a nice day.
Best Regards,
Andi Santoso
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname