Advertisement

01.19.2008 at 06:40AM PST, ID: 23095611
[x]
Attachment Details

Datagrid not loading data rows after DataTable cleared and filled

Asked by br105559 in C# Programming Language

Tags: c#

I have a datagrid which is bound to a datatable. When I clear and re-populate the datatable the first time, everything works great.  

When I do it a second time, the column headers appear, but not the data rows. I can loop through the datatable and see the data in the rows, but it is not appearing on the grid.

I have tried setting the datasource to null, then setting it to the datatable.
I have tried calling datagrid.refresh

I have been workng with datatables and datagrids quite a bit, and have never run into anything like this.Start Free Trial
[+][-]01.21.2008 at 04:30AM PST, ID: 20705454

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
Tags: c#
Sign Up Now!
Solution Provided By: prakash_prk
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628