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.

Databound Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

67901 Sep 4,2007 09:35 AM Sep 4,2007 10:37 PM Windows Forms 1
loading
Tags: GridControl
Scott Griswold
Asked On September 4, 2007 09:35 AM

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

Rajagopal [Syncfusion]
Replied On September 4, 2007 10:37 PM

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

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.

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.

;