I'm overriding the ItemDataBound event in a user control that contains a Prometheus RadGrid, and I want to perform some custom formatting of the data. I'm having a bit of a challenge, though, because I can't figure out how to pull the raw data out of the "current" row of the MasterTableView.DataSource.
I'm looking at the "Conditional Formatting for rows/cells on ItemDataBound" article in the help, and I see this example:
I want to do something very similar, but with one exception... Where this example reads the text from one of the other table cells, I want to read the raw data object out of the data source. With RadGrid adding so much intelligence around the variety of objects it will accept as the DataSource, how can I reliably find the data object that relates to one of the field names that I earlier added to AdditionalDataFieldNames for the row/object that's currently being bound?
I'm looking at the "Conditional Formatting for rows/cells on ItemDataBound" article in the help, and I see this example:
| If (Integer.Parse(dataBoundItem( "Size" ).Text) > GridItemType.Footer) Then |
| dataBoundItem( "Received" ).ForeColor = Color.Red |
| dataBoundItem( "Received" ).Font.Bold = True |
| 'Customize more... |
| End If |
I want to do something very similar, but with one exception... Where this example reads the text from one of the other table cells, I want to read the raw data object out of the data source. With RadGrid adding so much intelligence around the variety of objects it will accept as the DataSource, how can I reliably find the data object that relates to one of the field names that I earlier added to AdditionalDataFieldNames for the row/object that's currently being bound?