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

How to remove ObjectViewState Column for child grid

Hi,

I have created master detail relationship in GridGroupingControl.
I am getting objectViewState column in the child grid. How to remove this column??



1 Reply

AD Administrator Syncfusion Team February 6, 2007 06:05 PM UTC

Hi,

You can add/remove columns from the VisibleColumns collection or you can set the GridColumnDescriptor.Width = 0. Here is a code snippet.

GridRelationDescriptor parentToChildRelationDescriptor = this.gridGroupingControl1.TableDescriptor.Relations["RelationName"];
parentToChildRelationDescriptor.ChildTableDescriptor.VisibleColumns.Remove( "ColumnName" );

Sample : MasterChildFormat.zip

Best Regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon