Hi,
I'm using a ListView in detail view mode and was trying to format all date values so that they are displayed in short date format.
It looks like the correct way to do this is within the CellFormatting event, so it would be something like this:
Function CellFormatting(sender As Object, e As ListViewCellFormattingEventArgs)
If isDate Then
e.CellElement.Text = String.Format(strFormat, DirectCast(e.CellElement, DetailListViewDataCellElement).Row(e.CellElement.Data))
The thing is, I'm not sure how to determine the data type or column type that corresponds to this e.CellElement. How can I tell if the current cell contains a date, or a int, or a string, or whatever?
Thanks!