We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataView and GridDataBoundGrid

Thread ID:





17852 Aug 18,2004 01:04 PM UTC Aug 19,2004 09:12 AM UTC WinForms 5
Tags: GridControl
Eddy Poullet
Asked On August 18, 2004 01:04 PM UTC

Hi, Certainly a mistake thet I do, but when I insert a DataView between a GDBG and a table, no data are displayed. The count of the (empty) rows is correct - I add a DV to do sort on some column. If I use the MSGrid, all the data are displayed. Maybe an option is not set ... Eddy POULLET Brussels

Administrator [Syncfusion]
Replied On August 18, 2004 01:27 PM UTC

If you have just set the DataTable as the grid''s datasource, then you can use dataTable1.DefaultView.Sort property to set the grid''s data without changing the DataSource. If you need to create a new DaatView for some reason (and not use teh default one for the dataTable), it should work OK. Here is a minimal sample that does this and works ok with out latest code base for me ( Are you doing something different? GDBGDataView_5389.zip

Administrator [Syncfusion]
Replied On August 18, 2004 01:30 PM UTC

That first sentence in the previous post should read Sort the grid''s data and not Set the grid''s data.

Eddy Poullet
Replied On August 19, 2004 07:44 AM UTC

Hi Clay, The only difference is that I use the component on the designer windows and not the code in the editor window. I have recreated the example( probably the path to the MDB is not good). You can see that all the lines in the GDBG are blank and if you suppress the columns, you see at run-time only one column. Seems to me strange. Anyway, thanks for your patience, Eddy POULLET Brussels TestGDBG_259.zip

Administrator [Syncfusion]
Replied On August 19, 2004 08:17 AM UTC

I could get things to work by calling grid.Binder.InitializeColumns after filling the DataTable in formload. oleDbDataAdapter1.Fill(dataSet11); this.gridDataBoundGrid1.Binder.InitializeColumns(); We will look into this here to see if there is something we can do to avoid having to call InitializeColumns to get this to work.

Eddy Poullet
Replied On August 19, 2004 09:12 AM UTC

Thanks for the help ! Eddy POULLET Brussels


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon