Hi,
I use the GridDataBoundGrid from 2.1.0.9.
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.
AD
Administrator
Syncfusion Team
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.
AF
Alex Feldman
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?
AD
Administrator
Syncfusion Team
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.
AF
Alex Feldman
December 6, 2005 02:51 PM UTC
Thanks. It works.