N
news.microsoft.com
Hello.
I've started a datagrid in codebehind and need to have the numeric columns
right aligned.
here's the code:
-----
Select Case arThis1(1)
Case "String"
dt.Columns.Add(New DataColumn(v, GetType(String)))
Case "Numeric"
dt.Columns.Add(New DataColumn(v, GetType(Integer)))
Case "Date"
dt.Columns.Add(New DataColumn(v, GetType(Date)))
End Select
-----
when the case is numeric, i would like to have that column
itemstyle-horizontalalign set to right. Is there a way to do this from
codebehind.
I've found a way to do this from the itemdatabound event, but I can't help
but thinking that this is the wrong way as it would be neccessary to set
global values, etc just to remember which columns, etc need this property.
Thanks for any assistance you can give.
Melissa
I've started a datagrid in codebehind and need to have the numeric columns
right aligned.
here's the code:
-----
Select Case arThis1(1)
Case "String"
dt.Columns.Add(New DataColumn(v, GetType(String)))
Case "Numeric"
dt.Columns.Add(New DataColumn(v, GetType(Integer)))
Case "Date"
dt.Columns.Add(New DataColumn(v, GetType(Date)))
End Select
-----
when the case is numeric, i would like to have that column
itemstyle-horizontalalign set to right. Is there a way to do this from
codebehind.
I've found a way to do this from the itemdatabound event, but I can't help
but thinking that this is the wrong way as it would be neccessary to set
global values, etc just to remember which columns, etc need this property.
Thanks for any assistance you can give.
Melissa