T
TS
i have a custom object list for my data source. i want to be able to
override some method so that whenever a column in row is bound, i can take
that value that gets bound, which is an integer, and decode that into it's
code table's textual value.
so if i have a collection of Car objects who have a property called Color,
which is an integer that points to a table that i can covert to its text
form:
ColorTable
1 = 'blue'
2 = 'red'
Where can i go to do this? I figured if i override OnDataBound, i could loop
thru all the rows and then thru all the columns and convert the values then,
but that means i have to do a looping operation - i figured i should be able
to do it as it gets bound???
thanks
override some method so that whenever a column in row is bound, i can take
that value that gets bound, which is an integer, and decode that into it's
code table's textual value.
so if i have a collection of Car objects who have a property called Color,
which is an integer that points to a table that i can covert to its text
form:
ColorTable
1 = 'blue'
2 = 'red'
Where can i go to do this? I figured if i override OnDataBound, i could loop
thru all the rows and then thru all the columns and convert the values then,
but that means i have to do a looping operation - i figured i should be able
to do it as it gets bound???
thanks