Advertisement

05.19.2008 at 05:39PM PDT, ID: 23415621
[x]
Attachment Details

Binding a Dataset to a DataGrid?

Asked by directxBOB in C# Programming Language

I'm having troubles binding my DataGrid with my DataSet.

I pull the DataSet down from a webservice, so there is no SQLAdapter or similar involved.

I am trying to do:


            dataGrid1.DataSource = mMaintenanceDS;

But this doesn't appear to fill the datagrid, and most likely because I am only setting the Datasource, but not actually binding the source.

Any help would be greatly appreciated, this one is just getting past me and I need to use a datagrid. Perhaps I can set a datatable to the dataset, and bind the grid with the table?

CheersStart Free Trial
[+][-]05.19.2008 at 06:21PM PDT, ID: 21602874

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 07:30PM PDT, ID: 21603215

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C# Programming Language
Sign Up Now!
Solution Provided By: anarki_jimbel
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.20.2008 at 12:14AM PDT, ID: 21604065

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628