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.

First column

Thread ID:

Created:

Updated:

Platform:

Replies:

41704 Mar 9,2006 09:58 AM Mar 10,2006 02:40 AM Windows Forms 2
loading
Tags: GridControl
Florin
Asked On March 9, 2006 09:58 AM

Hello, I have a little question regarding databoudn grid. On the first column I want to write a text (for example the record number) instead of > (the active record sign). It is possible ? Thanks a lot.

Administrator [Syncfusion]
Replied On March 9, 2006 10:40 AM

Hi, Yes, this can be acheived by using QueryCellInfo event. Here is the code snippet //this.gridDataBoundGrid1.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo); private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { if(e.ColIndex == 0 && e.RowIndex > 0) { e.Style.CellType = "Header"; e.Style.CellValue = e.RowIndex; } } Best regards, Madhan.

Florin
Replied On March 10, 2006 02:40 AM

Many thanks Madhan. It''s work nice. Florin >Hi, > >Yes, this can be acheived by using QueryCellInfo event. Here is the code snippet > > //this.gridDataBoundGrid1.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo); > private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) > { > if(e.ColIndex == 0 && e.RowIndex > 0) > { > e.Style.CellType = "Header"; > e.Style.CellValue = e.RowIndex; > } > > } > >Best regards, >Madhan.

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.

;