﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - How can I bind a customer table to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-bind-a-customer-table-to-webgrid/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How can I bind a customer table to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-bind-a-customer-table-to-webgrid/</link><pubDate>Fri, 23 Apr 2010 12:06:24 GMT</pubDate><dc:creator>andi@intersoftpt.com</dc:creator><description>&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Hi Gao YiXin,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; 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.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; I hope it helps. Thank you and have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 9pt; "&gt;Andi Santoso&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How can I bind a customer table to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-I-bind-a-customer-table-to-webgrid/</link><pubDate>Fri, 23 Apr 2010 02:43:16 GMT</pubDate><dc:creator>gao3251999</dc:creator><description>&lt;p&gt;How can I bind a customer table to webgrid,for example:&lt;/p&gt;
&lt;p&gt;        DataTable dt = new DataTable();&lt;br /&gt;        DataColumn dc = new DataColumn("ID", typeof(int));&lt;br /&gt;        dt.Columns.Add(dc);&lt;br /&gt;        dt.Rows.Add(1);&lt;br /&gt;        dt.Rows.Add(1);&lt;br /&gt;        dt.Rows.Add(2);&lt;br /&gt;        dt.Rows.Add(3);&lt;br /&gt;        dt.Rows.Add(4);&lt;br /&gt;        dt.Rows.Add(5);&lt;br /&gt;        dt.Rows.Add(1);&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>