>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only