Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Jasper Kent #1
DataGridView
I'm trying to format a DateTime bound column with the new DataGridView in
VS2005.
I set the DataFormatString to "{0:d}" (which should give me the date only)
and I get the general format (including time). None of the possible
formatting options seems to make a difference.
Formatting a numeric column seems to work fine.
Any ideas?
Jasper Kent Guest
-
How to establish connection of DataGridView Control to Stock Excha
Dear Sir, I m develop a application in vb.net which update a live prices of stocks by a website named (www.nseindia.com) i m using... -
ComboBox column in DataGridView
This isn't exactly about DataGrid. It's about DataGridView, but I'm hoping this newsgroup is close enough. I have a ComboBox type column in a... -
Brian Hammil #2
Re: DataGridView
In BETA 2 of Visual studio that worked, I don't understand while at release
someone changed it. Anyway, you have to set the htmlEncode of the bound
column to false:
<asp:BoundField DataField="DateOfBirth" DataFormatString="{0:MM/dd/yyyy}"
HtmlEncode="false"/>
Hope this helps
Jasper Kent wrote:-->I'm trying to format a DateTime bound column with the new DataGridView in
>VS2005.
>
>I set the DataFormatString to "{0:d}" (which should give me the date only)
>and I get the general format (including time). None of the possible
>formatting options seems to make a difference.
>
>Formatting a numeric column seems to work fine.
>
>Any ideas?
Brian Hammil
"Peace for Life.....Natrual Spring...."
After the several shots of Tequila it
sounded profound!
Brian Hammil Guest
-
Jasper Kent #3
Re: DataGridView
Easy once you know how - many thanks.
"Brian Hammil" <u15915@uwe> wrote in message news:57a1fb3706a56@uwe...> In BETA 2 of Visual studio that worked, I don't understand while at
> release
> someone changed it. Anyway, you have to set the htmlEncode of the bound
> column to false:
>
> <asp:BoundField DataField="DateOfBirth" DataFormatString="{0:MM/dd/yyyy}"
> HtmlEncode="false"/>
>
> Hope this helps
>
> Jasper Kent wrote:>>>I'm trying to format a DateTime bound column with the new DataGridView in
>>VS2005.
>>
>>I set the DataFormatString to "{0:d}" (which should give me the date only)
>>and I get the general format (including time). None of the possible
>>formatting options seems to make a difference.
>>
>>Formatting a numeric column seems to work fine.
>>
>>Any ideas?
> --
> Brian Hammil
> "Peace for Life.....Natrual Spring...."
> After the several shots of Tequila it
> sounded profound!
Jasper Kent Guest



Reply With Quote

