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

hide and show columns

Hi, Can you show me how can i hide and show a column in the ExpandGrid (DataBoundGrid) I manage to hide a column by setting LayoutColumns(string[] layoutcolumns), but in this way the column i want to hide is actually deleted from Internal Column collections... how can i retain the columns in the underlying table but remain itself hidden?

1 Reply

AD Administrator Syncfusion Team April 23, 2004 02:21 PM UTC

This code this.gridDataBoundGrid1.Model.Cols.Hidden[2] = true; placed at the bottom of FormLoad will hide the first column in each table (2 is because 0 is the header and 1 is the +/-).

Loader.
Up arrow icon