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.

databoundGrid datatime column

Thread ID:

Created:

Updated:

Platform:

Replies:

37956 Dec 2,2005 11:59 AM Dec 2,2005 02:48 PM Windows Forms 1
loading
Tags: Tools
Alexandre faucher
Asked On December 2, 2005 11:59 AM

Hi! I''ve a probleme... When I add a datatime column in DataBoundGrid, the column show the calendar activeX. How I can diseable or set visible of this control. I want only show the date with datetime cellvaluetype in a column. And if I use a string type, I can''t use a specific format with baseStyleMap Please help me. Alexandre

Alexandre faucher
Replied On December 2, 2005 02:48 PM

ok,I found: if ( e.Style.CellType == "MonthCalendar" && e.RowIndex > 0) { e.Style.Format = "yyyy/MM/dd hh:mm:ss tt"; e.Style.CellType = "String"; }

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.

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.

;