Updating of databound grid

Hi,

I am serializing the dataset bound to the DataBoundGrid into an XML file, then I clear the grid and try reloading the data from the XMl file by deserializing it, but nothing is reflected in the grid. I can see the data is present in the datatable.

I have tried (BeginUpdate, EndUpdate), (SuspendBinding, ResumeBinding), Refresh, n even updated datasource again but still nothing is reflected on the grid.

I think i m missing something , but wht i dont know, cld you please help me with this.

Regards,
Anika

5 Replies

AD Administrator Syncfusion Team April 11, 2007 03:11 PM UTC

Try setting:

grid.DataSource = null;
grid.DataSource = yourDataTable;

after reloading the table to see if that does what you need.


AK Anika kapoor April 12, 2007 07:01 AM UTC

Hi Clay,

It didn't work, do you think there is any other way.

Regards,
Anika


AD Administrator Syncfusion Team April 12, 2007 09:58 AM UTC

Here is a little sample that seems to work as expected. How do we see the problem you are having in this sample?

WindowsApplication1320.zip


AK Anika kapoor April 12, 2007 11:51 AM UTC

Hi Clay,

I am using VS 2003 and Syncfusion 3.3.0.0, so not able to open the sample could you please send me sample in the current version.
I wld be very grateful to u.

Regards,
Mudita


AD Administrator Syncfusion Team April 12, 2007 12:51 PM UTC

Here is a 1.1 project.


WindowsApplication1330.zip

Loader.
Up arrow icon