﻿<?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 - Simple way to bind iList to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Simple-way-to-bind-iList-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>Simple way to bind iList to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Simple-way-to-bind-iList-to-webgrid/</link><pubDate>Sun, 26 Dec 2010 08:51:35 GMT</pubDate><dc:creator>hosney</dc:creator><category>bind ilist webgrid</category><description>&lt;p&gt;Thanks Handy. You rock! :)&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Simple way to bind iList to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Simple-way-to-bind-iList-to-webgrid/</link><pubDate>Fri, 24 Dec 2010 07:53:27 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>bind ilist webgrid</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;It depends on how you define your WebGridColumn structure. In PrepareDataBinding, normally we use &lt;b&gt;RetrieveStructure&lt;/b&gt;(). This method will automatically add all columns automatically based your database column. &lt;br /&gt;If you want to define the order, I suggest you to add you own column manually.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Simple way to bind iList to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Simple-way-to-bind-iList-to-webgrid/</link><pubDate>Fri, 24 Dec 2010 01:09:53 GMT</pubDate><dc:creator>hosney</dc:creator><category>bind ilist webgrid</category><description>&lt;p&gt;that worked for me. thanks! is there any simple way that we can control the order of the columns displayed?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Simple way to bind iList to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Simple-way-to-bind-iList-to-webgrid/</link><pubDate>Thu, 23 Dec 2010 09:28:51 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>bind ilist webgrid</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;That's not the proper way to do databinding. Please see my attachment sample. &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Simple way to bind iList to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Simple-way-to-bind-iList-to-webgrid/</link><pubDate>Thu, 23 Dec 2010 04:52:38 GMT</pubDate><dc:creator>hosney</dc:creator><category>bind ilist webgrid</category><description>Hi,
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Is there a simple way to bind an IList to a webgrid? I tried this and it's not working&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="300px" UseDefaultStyle="True"&lt;br /&gt;            Width="100%"&amp;gt;&lt;br /&gt;&amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;&lt;pre&gt;protected void btnGo_Click(object sender, EventArgs e)&lt;br /&gt;        {&lt;br /&gt;            WebGrid1.DataSource = ObjectMgr.GetList(); // Returns IList&amp;lt;MyCustomObj&amp;gt;&lt;br /&gt;            WebGrid1.DataBind();&lt;br /&gt;        }&lt;/pre&gt;
&lt;p&gt;but nothing happens to the grid. Anything I'm missing?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>