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.
Syncfusion Feedback

GCC TableDescriptor properties return to default values ver. 6.4.0.14

Thread ID:

Created:

Updated:

Platform:

Replies:

77230 Oct 21,2008 05:20 PM UTC Oct 21,2008 10:35 PM UTC Windows Forms 2
loading
Tags: GridControl
Brian Schlatter
Asked On October 21, 2008 05:20 PM UTC

Hi,

I'm using your GridGroupingControl to display a DataTable I populate using our database. I've set the AllowNew and AllowRemove properties from it's TableDescriptor to false as I do not wish the user to add or remove rows from the grid.

It is quite often that the user will trigger an action that requires the DataTable to be updated and re-shown in the GGC. When this occurs, we programmatically set the GGC's DataSource property to null, retrieve the new DataTable and apply it to the GGC's DataSource.

Here's the problem. When setting the GGC's DataSource property to null, it's TableDescriptor objects seems to restore all it's property values back to their default values. Most importantly, the AllowNew and AllowDelete properties return back to true! Now I'm forced to reset these values back to false every time this occurs.

So, is this expected behavior when setting the GGC's DataSource to null? If so, why? If not then I believe we have a bug on your hands.

Thanks in advance,
Brian Schlatter


Administrator [Syncfusion]
Replied On October 21, 2008 08:30 PM UTC

Hi Brian,
If you don't want the TableDescriptor to be reset when the DataSource is set to null, please set this property GridGroupingControl.AllowResetTableDescriptorWhenDataSourceSetNull to false.


this.gridGroupingControl1.AllowResetTableDescriptorWhenDataSourceSetNull = false;


Regards,
Jay


Brian Schlatter
Replied On October 21, 2008 10:35 PM UTC

Oh man, cool. Thanks Jay!


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.

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

;