We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to format a column, i need to display Time("HH::mm") format.

Thread ID:





54224 Jan 4,2007 08:06 AM UTC Jan 4,2007 08:29 AM UTC WinForms 1
Tags: GridControl
Asked On January 4, 2007 08:06 AM UTC

i have a gridboundcolumn
i want to format it like "HH:mm"

pls provide a solution

Administrator [Syncfusion]
Replied On January 4, 2007 08:29 AM UTC

Hi Ginu,

You can set StyleInfo.Format property for formatting the cell values. You can specify the numeric format string, Date format string or enumeration format string. Here is a code snippet to show the "HH:mm" format.

this.gridDataBoundGrid1.Binder.InternalColumns["ColumnName"].StyleInfo.CellValueType = typeof(DateTime);
this.gridDataBoundGrid1.Binder.InternalColumns["ColumnName"].StyleInfo.Format = "HH:mm";

Sample : FormatSample

Also refer our shipped TextFormat browser sample for more details.
[install path:]\Syncfusion\Essential Studio\\windows\Grid.Windows\Samples\Quick Start\TextFormat\

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon