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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

First column

Thread ID:

Created:

Updated:

Platform:

Replies:

41704 Mar 9,2006 02:58 PM UTC Mar 10,2006 07:40 AM UTC WinForms 2
loading
Tags: GridControl
Florin
Asked On March 9, 2006 02:58 PM UTC

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 03:40 PM UTC

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 07:40 AM UTC

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.

Warning Icon 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.Close Icon

;