Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date displays as DateTime
Message
From
22/12/2009 11:52:58
 
 
To
21/12/2009 19:47:10
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01439892
Message ID:
01440162
Views:
33
>My guess would be just intellisense your way to the property.
>
>I just tried it and got
>
> dgvMyGrid.Columns.Item(1).CellTemplate.Style.Format = "d"
>or
> dgvMyGrid.Columns.Item("MydateColumn").CellTemplate.Style.Format = "d"
>
>( I have to admit it wasn't immediately apparent <s> )
>
>Of course I haven't done any webforms yet and I'm just assuming the control works the same way there, but give it a try and let me know
>
>oh, and there is a cellformatting event for the dgv, so you may have to handle that and set it there if you are doing it programmatically.
>
>But is this necessary on a web form? Can't you set the property on the grid control itself at design time?
>

The data columns are not known at design time. The user will be selecting the columns to display from a CheckBoxList on the form.

Thanks again for your response. I very much appreciate your help.

.......Rich
Previous
Reply
Map
View

Click here to load this message in the networking platform