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
close icon

Hiding first column in GDBG Tree Lines

Hi,

I would want to hide the first Column in GDBG Tree Lines grid.
The first column is my ID field, thru. which the hierarchy is built.

grid.model.hideCols["columnname"] = true does not work.

Please find my code appended.

Thanks,
Raul D'souza




3 Replies

RA Raul April 17, 2008 06:14 PM UTC

this time with the attachment.



SyncGrid.zip


RA Raul April 21, 2008 05:43 AM UTC

Could I rec. a reply to this question Please.



VK Vinoth Kumar K Syncfusion Team May 2, 2008 07:39 PM UTC

Hi Raul,

I apologies for the delay in responding to you.

Issue : Hide the first column in GDBG TreeLines Grid

You can achieve this using LayoutColumns() method of the GDBG. The ColumnName specified in the Array String will be displayed in the GDBG. Please refer to the code snippet given below:


this.dgrd.Binder.LayoutColumns(new String[] { "Package_Name", "Check" });
this.dgrd.Refresh();


Also have a look at the modified sample from the below link:

http://websamples.syncfusion.com/samples/Grid.Windows/I73057/main.htm

Thank you for choosing Syncfusion Essentiial Studio for your development needs.

Regards,
Vinoth


Loader.
Live Chat Icon For mobile
Up arrow icon