﻿<?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 with WebService without LINQ - any example ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Clientside-Binding-with-WebService-without-LINQ---any-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 with WebService without LINQ - any example ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Clientside-Binding-with-WebService-without-LINQ---any-example-/</link><pubDate>Sun, 14 Mar 2010 23:34:08 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;The next build of WebGrid 7 will support this feature which will be released in a few weeks. Here is a snippet of the GetData function:&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;&lt;br /&gt;    retrieveComm.Connection = new SqlConnection(ConfigurationManager.ConnectionStrings["SqlNorthwindConnectionString"].ConnectionString);&lt;br /&gt;&lt;br /&gt;    retrieveComm.CommandText = "SELECT TOP 15 * 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;    if (selectArguments.OperationType == SelectOperation.SelectData)&lt;br /&gt;    {&lt;br /&gt;        ISDataTable isTable = DataTableConverter.ConvertFrom(dtTemp);&lt;br /&gt;        return isTable;&lt;br /&gt;    }&lt;br /&gt;    else if (selectArguments.OperationType == SelectOperation.SelectCount)&lt;br /&gt;        return dtTemp.Rows.Count;&lt;br /&gt;&lt;br /&gt;    throw new InvalidOperationException("Unsupported operation type!");&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;Here is the snippet of the WebGrid client binding property:&lt;/p&gt;&lt;pre&gt;&amp;lt;ClientBindingSettings DataLoadMode="PagedData" DataSourceType="WebService"&lt;br /&gt;    ServiceUrl="CustomService.asmx"&amp;gt;&lt;br /&gt;    &amp;lt;ServiceMethods SelectMethod="GetData" /&amp;gt;&lt;br /&gt;&amp;lt;/ClientBindingSettings&amp;gt;&lt;/pre&gt;
&lt;p&gt;It is very similar with the snippet code you posted &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Clientside Binding with WebService without LINQ - any example ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Clientside-Binding-with-WebService-without-LINQ---any-example-/</link><pubDate>Sun, 21 Feb 2010 21:42:57 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;I have discussed this issue with the developer, this feature has not been supported in the current build of WebGrid 7. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;However, the next build of WebGrid 7 will be enchanced to include this feature.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Clientside Binding with WebService without LINQ - any example ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Clientside-Binding-with-WebService-without-LINQ---any-example-/</link><pubDate>Wed, 17 Feb 2010 06:20:27 GMT</pubDate><dc:creator>ands</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'd like to use datatable from my dataset as datasource to loading WebGrid via WebService in clientside bind mode. I don't want to use LINQ.&lt;/p&gt;
&lt;p&gt;I've tried (but without result)&lt;/p&gt;&lt;pre&gt;[ScriptMethod]
[WebMethod()]
public ISDataTable GetJSONHAState()
{
  DataSet1.WSS_HA_STATEDataTable dt = new DataSet1.WSS_HA_STATEDataTable();
  DataSet1TableAdapters.WSS_HA_STATETableAdapter da = new DataSet1TableAdapters.WSS_HA_STATETableAdapter();
&lt;span style="font-size: 13px"&gt;&lt;p&gt; da.Fill(dt, 0);&lt;/p&gt; r&lt;/span&gt;eturn DataTableConverter.ConvertFrom(dt);
}
&lt;/pre&gt;
&lt;p&gt;Could you give me some example ?&lt;/p&gt;
&lt;p&gt;regard&lt;/p&gt;
&lt;p&gt;Andrzej&lt;/p&gt;</description></item></channel></rss>