473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Binding Grid

Hello all,
I am using a DataGrid, How can i bind a DataGrid to a
WebService which returns DataSet.
Thanks
Nov 15 '05 #1
2 1305
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" <Da******@hotmail.com> wrote in message
news:07****************************@phx.gbl...
Hello all,
I am using a DataGrid, How can i bind a DataGrid to a
WebService which returns DataSet.
Thanks

Nov 15 '05 #2
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 [.NET/C# MVP]" <ni**************@exisconsulting.com> wrote
in message news:er*************@TK2MSFTNGP12.phx.gbl...
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" <Da******@hotmail.com> wrote in message
news:07****************************@phx.gbl...
Hello all,
I am using a DataGrid, How can i bind a DataGrid to a
WebService which returns DataSet.
Thanks



Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ann Morris | last post by:
INTRODUCTION One of the most powerful aspects of .NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a...
7
by: erniej | last post by:
as per instructions in the walkthrough, I have managed to create a master/detail relationship between two datagrids. However I have a requirement to apply this to three datagrids and the third...
1
by: Parveen | last post by:
I noticed that any formatting of the grid before data binding is lost after the grid is bound to a data table in the dataset. Is it possible to format the appearance of the data that shows up in...
2
by: yuanh23 | last post by:
Hi, I have 3 talbes "customers","orders","details". i wanna to use 3 datagrids to show those tables. and when the selected row in parent talbe changes, the selected row in child table changes...
5
by: Amit | last post by:
Hello, I have a simple search screen, with two drop-downs and a text box. There's also a GridView control that is using a SqlDataSource control to show the matching results. The SqlDataSource uses...
6
by: Rick | last post by:
VS 2005 I want to make sure I have this concept down correctly. I have a strongly typed datatable and a binding source connected to it. On my windows form a grid is connected to the binding...
1
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
I'm working in Visual Studio 2005 and C#. I have a DataSet, a Binding Source, and a grid. I'm finding that if a table in the DataSet gets updated from the Database, the new data doesn't appear in...
2
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hello, My first attempt to bind a 'detail' form to the properties on an object and the binding is not working. I have the following grid: <Grid x:Name="MainGrid"> <StackPanel...
5
by: star-italia | last post by:
My XAML is the following: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Style...
0
by: furqanms | last post by:
Hello, I am new to WPF ,I am developing touch screen system using WPF. I am facing problem in Binding relative reference. Here is my code : <UserControl x:Class="uctlBrowser" ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.