ADAdministrator Syncfusion Team July 11, 2004 02:32 PM
You can try PrepareViewStyleInfo. If e.ColIndex points to the column you want to format, then set e.Style.Text to whatever you want to see.
SGSean GreerJuly 11, 2004 02:56 PM
That got me half way there. When the grid intially renders the value that is displayed is the value that I provided via PVSI. However, then I click on the cell I see the actual underlying value and not the value provided by PVSI. The cell type is Static.
ADAdministrator Syncfusion Team July 11, 2004 05:25 PM
To handle setting the text when the cell becomes current, you can subcribe to CurrentCellInitializeControlText and do the work there setting e.ControlText toyour desired text and also setting e.Cancel = true so the grid will not reset things.
ADAdministrator Syncfusion Team July 12, 2004 01:06 AM
You can do it using a single event in grid.Model.QueryCellInfo using code similar to what you put in PrepareViewStyleInfo.
(If you are trying to change cell 1,1, and if you subscribe to the event AFTER you set the DataSource of the grid, then you will have to do something like call this.gridDataBoundGrid1.CurrentCell.ResetCurrentCellWithoutDeactivate() to reset the current cell so its value can be modified through QueryCellInfo since it was already set when you set the DataSource. You can make this call right after you subscribe to teh event).