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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl - Getting DataSource

Thread ID:





45416 Jun 20,2006 04:23 PM UTC Jun 20,2006 06:03 PM UTC WinForms 2
Tags: GridControl
Clive Hill
Asked On June 20, 2006 04:23 PM UTC

I set the GridGroupingControl''s (GGC) DataSource property to be a DataTable with columns defined, but no rows. (The idea being to retrieve this at a later date to add rows.). This is set with following code: dataGrid.DataSource = underLyingDataTable; If I immediately retrieve the data source using: object ds = dataGrid.DataSource; ds is undefined. Any ideas why this happens? (I do the same thing with DataBoundGrid and it works as expected.)

Administrator [Syncfusion]
Replied On June 20, 2006 04:59 PM UTC

Hi Clivito, I am afraid that I was not able to reproduce this issue. Please let me know the version number of Studio you are testing this with and the .Net version. Thanks for using Syncfusion Product. Regards, Haneef

Clive Hill
Replied On June 20, 2006 06:03 PM UTC

My bad... for DataBoundGrid I was doing the following: ((System.ComponentModel.ISupportInitialize)(dataGrid)).BeginInit(); dataGrid.SuspendLayout(); when building up the grid. For GridGroupingControl this has te effect of making the DataSource come back as null for some reason. This works now.


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

or the page will be automatically redirected to 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