![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a gridview which need to filled by various data according to user's action. I want to format the dynamical displayed data. For example the number should be right aligned, datetime column using short format, etc. Anyway to implement it? Can RowDataBound event do it? Sounds I need to know the binding columns' data source type (?_ and set the format of the gridview columns according to the type. Is it possible? |
#3
| |||
| |||
|
|
You've got to have something there, to be able to format - especially since you want to have different columns formatted differently - at least you will need to have boundcolumns, in order to create formatting for each one. I would think that it might be possible in the rowDatabound event, though I've never tried it, but you'd need to go by cell number -- David Wier MVP/ASPInsider http://aspnet101.com http://aspexpress.com "nkw" <nkw (AT) discussions (DOT) microsoft.com> wrote in message news:8BF614D5-FE53-4C9D-83E1-1CF4B0064CDF (AT) microsoft (DOT) com... I have a gridview which need to filled by various data according to user's action. I want to format the dynamical displayed data. For example the number should be right aligned, datetime column using short format, etc. Anyway to implement it? Can RowDataBound event do it? Sounds I need to know the binding columns' data source type (?_ and set the format of the gridview columns according to the type. Is it possible? |
#4
| |||
| |||
|
|
I have a gridview which need to filled by various data according to user's action. I want to format the dynamical displayed data. For example the number should be right aligned, datetime column using short format, etc. Anyway to implement it? Can RowDataBound event do it? Sounds I need to know the binding columns' data source type (?_ and set the format of the gridview columns according to the type. Is it possible? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |