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

Databound Grid

Hello,

I have three questions about the data bound grid:

1. In the standard grid control there is a setting to hide columns. I am interested in hiding the first column. Can this be done on the data bound grid?
2. When the grid is bound to a data source a new record appears at the bottom of the grid. Can this be removed?
3. Can the font of the display at the top of each column be different then the rest of the control?

Thanks,

Scott Griswold

1 Reply

RA Rajagopal Syncfusion Team September 5, 2007 02:37 AM UTC

Hi Scott,

Thanks for your interest in Syncfusion Products.

1. The below can be used to hide columns in GridDataBoundGrid.

this.gridDataBoundGrid1.Model.HideCols[1] = true;

2. To avoid the addnew row at the bottom, set the below property setting

this.gridDataBoundGrid1.EnableAddNew = false;

3. To change the font/display appearance for the column header cells, the PrepareViewStyleInfo event has to be handled. Refer the sample for more details.

Please refer the sample below that helps in doing the above mentioned tasks.
http://websamples.syncfusion.com/samples/Grid.Windows/F67901/main.htm

Let me know if you have any other questions.

Regards,
Rajagopal

Loader.
Live Chat Icon For mobile
Up arrow icon