Hi,
I am grouping a ListView in DetailsView on a databound DateTime column. I can format the CellElement.Text for the column using the cell formatting event:
But how can I format the group header to display the long date format as well?
I am grouping a ListView in DetailsView on a databound DateTime column. I can format the CellElement.Text for the column using the cell formatting event:
Private
Sub
radListView3_CellFormatting(sender
As
Object
, e
As
Telerik.WinControls.UI.ListViewCellFormattingEventArgs)
Handles
RadListView3.CellFormatting
If
e.CellElement.Data.HeaderText =
Me
.RadListView3.Columns(
"NoteDate"
).HeaderText
And
TypeOf
(e.CellElement)
Is
DetailListViewDataCellElement
Then
e.CellElement.Text = [
String
].Format(
"{0:D}"
, (
DirectCast
(e.CellElement, DetailListViewDataCellElement)).Row(e.CellElement.Data))
End
If
End
Sub
But how can I format the group header to display the long date format as well?