Binding Grid

D

DataGridUser

Hello all,
I am using a DataGrid, How can i bind a DataGrid to a
WebService which returns DataSet.


Thanks
 
N

Nicholas Paldino [.NET/C# MVP]

DataGridUser,

If the webservice returns a type of DataSet, then all you really have to
do is take that result and assign it to the DataSource property of the
DataGrid. The grid should take care of the rest for you.

Hope this helps.
 
D

Dmitriy Lapshin [C# / .NET MVP]

Nicholas,

My experience proves that it is better to call the SetDataBinding method in
case of the Windows Forms DataGrid. I really don't know why but it really
helps to resolve some weird issues sometimes.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Nicholas Paldino said:
DataGridUser,

If the webservice returns a type of DataSet, then all you really have to
do is take that result and assign it to the DataSource property of the
DataGrid. The grid should take care of the rest for you.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- nick(dot)paldino=at=exisconsulting<dot>com

DataGridUser said:
Hello all,
I am using a DataGrid, How can i bind a DataGrid to a
WebService which returns DataSet.


Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top