I am trying to use a rad listview contol to display data from a SQL data table. When the data is loading (binding) I need to examine the data columns and perform some modifications to the data and replace the value in one of the data fields with the modified data. For example, there are three fields of data in the underlying query. Field 'A' contains 'abc'. Field 'B' contains '123'. Field 'C' contains an empty string. I want to concatenate the contents of Fields 'A' and 'B' and the place the results 'abc123' in Field 'C' which is defined in the listview layout.
I do these (and other) sorts of modifications to data regularly when using the rad grid. Can I do them when using your listview control as well?
When performing these operations in the grid, I use the "ItemDataBound" event and perform a test at the beginning of the event for "If TypeOf e.Item Is GridDataItem Then.....Else....End If" such as:
I have tried doing something similar in the same event for the RadListView control, but always get errors -- you may refer to the attached screen capture.
Is there a way to modify the data to appear in the radlistview similarly to what I am doing with the radgrid?
Thanks in advance!