﻿<?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 - Clientside Binding using 'late binding' method (from a dataset for instance) - example?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Clientside-Binding-using-late-binding-method-from-a-dataset-for-instance---example/</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>Clientside Binding using 'late binding' method (from a dataset for instance) - example?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Clientside-Binding-using-late-binding-method-from-a-dataset-for-instance---example/</link><pubDate>Fri, 07 May 2010 12:56:15 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;You could use WebService to return the filtered data. However, WebGrid will only accept LINQ object or ISDataTable object as the return value. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The provide client binding sample with WebService has shown how to use WebService and LINQ object.&lt;/p&gt;
&lt;p&gt;Here is the WebService method snippet using ISDataTable, the snippet will convert DataTable object into ISDataTable :&lt;/p&gt;&lt;pre&gt;[WebMethod]&lt;br /&gt;public Object GetData(DataSourceSelectArguments selectArguments)&lt;br /&gt;{&lt;br /&gt;    SqlCommand retrieveComm = new SqlCommand();&lt;br /&gt;    retrieveComm.Connection = new SqlConnection(ConfigurationManager.ConnectionStrings["SqlNorthwindConnectionString"].ConnectionString);&lt;br /&gt;    retrieveComm.CommandText = "SELECT * FROM [Products]";&lt;br /&gt;&lt;br /&gt;    SqlDataAdapter da = new SqlDataAdapter();&lt;br /&gt;    da.SelectCommand = retrieveComm;&lt;br /&gt;&lt;br /&gt;    DataTable dtTemp = new DataTable();&lt;br /&gt;    da.Fill(dtTemp);&lt;br /&gt;&lt;br /&gt;    ISDataTable isTable = DataTableConverter.ConvertFrom(dtTemp);&lt;br /&gt;    return isTable;&lt;br /&gt;&lt;br /&gt;    throw new InvalidOperationException("Unsupported operation type!");&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Clientside Binding using 'late binding' method (from a dataset for instance) - example?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Clientside-Binding-using-late-binding-method-from-a-dataset-for-instance---example/</link><pubDate>Fri, 07 May 2010 10:08:50 GMT</pubDate><dc:creator>ashZA</dc:creator><description>&lt;p&gt;Anyone ever tried this &amp; have a working example?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Just to confirm... I'd like to late bind the a datasource to a webgrid (pass in parameters from a seach to funtion that returned a dataset, and bind that dataset to the grid, but at the same time taking advantage of client side binding) &lt;/p&gt;
&lt;p&gt;Not sure of a correct way to go about this, but cant seem to get it to work. grid shows up with results, but also pops up error messages.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Ash&lt;/p&gt;</description></item></channel></rss>