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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridDataBoundGrid: change display value of any underlying cell value

Thread ID:





38082 Dec 5,2005 08:44 PM UTC Dec 6,2005 02:51 PM UTC WinForms 4
Tags: GridControl
Alex Feldman
Asked On December 5, 2005 08:44 PM UTC

Hi, I use the GridDataBoundGrid from I need to change the display value of the cell. (For example 0 - "C1", 1 - "T1", 2 - "U1") If I handle PrepareViewStyleInfo event and override e.StyleInfo.FormattedText or e.StyleInfo.Text Grid throws System.FormatException exception. The column type is System.Byte.

Administrator [Syncfusion]
Replied On December 6, 2005 12:10 AM UTC

If you want to change the text displayed in the cell, try handling DrawCellDisplayText and set e.Display to the new value you want to see.

Alex Feldman
Replied On December 6, 2005 01:02 PM UTC

It does what I need. How I can find the column number inside DrawCellDisplayText? Does it mean that Style contain the indentifier of how I should change the display value?

Administrator [Syncfusion]
Replied On December 6, 2005 02:22 PM UTC

Try using e.Style.CellIdentity.RowIndex and e.Style.CellIdentity.ColIndex to get the row and column of the cell being drawn.

Alex Feldman
Replied On December 6, 2005 02:51 PM UTC

Thanks. It works.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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