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.
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:

Created:

Updated:

Platform:

Replies:

54224 Jan 4,2007 08:06 AM UTC Jan 4,2007 08:29 AM UTC Windows Forms 1
loading
Tags: GridControl
ginu
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
thanks
Ginu

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\4.3.0.25\windows\Grid.Windows\Samples\Quick Start\TextFormat\

Best Regards,
Haneef

CONFIRMATION

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.

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

;