Ask a Question related to ASP.NET General, Design and Development.
-
Steve C. Orr, MCSD #1
Re: Format Dates in DataGrid
Try this:
<%# DataBinder.Eval(Container.DataItem, "FieldName", "{0:d}") %>
Here's more details:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsdatalistcommandeventarg sclasstopic.asp[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"PABLIN" <pablinvb@hotmail.com> wrote in message
news:059d01c3530c$ab048920$a101280a@phx.gbl...> Hello Community.
> I am loading data in a DataGrid, in a column load dates,
> am using the Property Builder - Columns - Bound Column of
> the Grid, segun you can be given to the fomato in Text
> Format string, alguine can informat to me like entrance
> the format of date small dd-mm-yy
> Thanks
Steve C. Orr, MCSD Guest
-
Format DataGrid Row
I am creating an email like application that makes use of a datagrid with "From", "Subject", and "Date" columns. If the user has yet to click on a... -
How can I save the style of a datagrid so that it appears on the automatic format to use iin another datagrid?
How can I save the style of a datagrid so that it appears on the automatic format to use iin another datagrid? -
Format datagrid in code behind
In my code behind I add a coloumn to a datgrid : lBlockUsedUp.DataField = "BlockUsedUp" lBlockUsedUp.HeaderText = "Blocks Used Up"... -
Update dates (strange format)
I have a forum that has registrations dates that were recovered from a previous bulletin board system. All the dates reverted/changed to 2000... -
datagrid edititemtemplate for dates
Hi, I'm using an EditItemTemplate on my datagrid for a date column in the DB. How would I go about using EditItemTemplate to split the date into...



Reply With Quote

