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.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl - Getting DataSource

Thread ID:

Created:

Updated:

Platform:

Replies:

45416 Jun 20,2006 12:23 PM Jun 20,2006 02:03 PM Windows Forms 2
loading
Tags: GridControl
Clive Hill
Asked On June 20, 2006 12:23 PM

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 12:59 PM

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 02:03 PM

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.

CONFIRMATION

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.

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.

;