|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Datagrid template columnHai,
i put template column in datagrid. then if i want to display date in that column (only date with out default time).can u tell me that option to display only date with out tme. if it is datagrid bounded column then it will come. i want for template column. thank u .. Hai chandu..
Its very simple on the property builder select on which template u want to display date..click the template and below u can find data bound properties type this {0:dd/MM/yyyy} while running u will get date without time.. chandu wrote: Show quoteHide quote > Hai, > > i put template column in datagrid. then if i want to display date in that > column (only date with out default time).can u tell me that option to > display only date with out tme. > > > if it is datagrid bounded column then it will come. > > i want for template column. > > thank u .. Or just calling
<%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"DateTimeField")).ToShortDateString() %> Regards, Alvin Chooi http://alvinzc.blogspot.com
Display an empty grid
good sample of creating my own web control? implicit vs explicit localization AccessDataSource - how to get access to the retrieved data? GridView RowComand event Issue changing rows in a multiline textbox localization for all MS web controls email sending twice Request for the permission of type System.Web.AspNetHostingPermission failed Help on Text editors |
|||||||||||||||||||||||