Hi,
I need to format the text in a GroupElement calculated on a datetime field, removing the time part [I want 10/04/19 instead of 10/04/2019 00:00:00].
I found a suggestion in this forum and wrote this code :
private void rpvtGrid_GroupElementFormatting(object sender, PivotGroupElementEventArgs e) { object laCosa = e.GroupElement?.Data?.Group?.Name; if (laCosa != null && laCosa is DateTime) { DateTime laData = (DateTime)laCosa; e.GroupElement.Text = laData.ToString("dd/MM/yy") + " Total"; }}
The last line of the method assign the correct value to e.GroupElement.Text but on the inteface nothing changes and I still see the original text [10/04/2019 00:00:00].
What did i miss ?
[This may be someway related to my previous post.]
