How to change the date time Format in WinForms GridGroupingControl?
Change the date time format
The DateTime Format for a WinForms GridGroupingControl date column can be customized by using the Format property of AnyRecordField cell.
C#
//Apply Formatting to a column named “Date” (Format – “dd/MM/yyyy”). this.gridGroupingControl1.TableDescriptor.Columns["Date"].Appearance.AnyRecordFieldCell.Format = "dd/MM/yyyy";
VB
‘Apply Formatting to a column named “Date” (Format – “dd/MM/yyyy”). Me.gridGroupingControl1.TableDescriptor.Columns("Date").Appearance.AnyRecordFieldCell.Format = "dd/MM/yyyy"
AnyRecordFieldCell - Gets or sets the GridTableCellStyleInfo with cell settings for any record field cell.
Image:
Samples:
C#: DateTimeFormat
VB: DateTimeFormat
I hope you enjoyed learning about how to change the date time Format in WinForms GridGroupingControl.
You can refer to our WinForms GridGroupingControl’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to present and manipulate data.
For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms GridGroupingControl and other WinForms components.
If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!