Articles in this section
Category / Section

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"

Note:

AnyRecordFieldCell - Gets or sets the GridTableCellStyleInfo with cell settings for any record field cell.

 

The screenshot below illustrates the DateTimeFormat in GridGroupingControl.


Change the date time format in WinForms GridGroupingControl

















Samples
:

C#: DateTimeFormat

VB: DateTimeFormat

 

Conclusion


I hope you enjoyed learning about how to change the date and 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 forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied