DataGrid: Can't apply style to column added at run time.
Brought to you by:
objectdcl
Let me re-phrase that...you CAN add a column at run
time BUT if you try to apply a style after the row
data has been added, the style will NOT take effect
unless a blank column is created at design time. For
example, you need 4 columns...you must create at
least 4 blank columns at design time or styles will
not be applied. This means if you write a program
where the number of columns keeps increasing (as I
have) then you must add some finite number of columns
at design time (thus creating an ugly
software "limit" for the end user). I created 100
blank columns for my program. I have to assign a
width of 0 to all the unused columns so the
horizontal slider appears correctly...quite messy!!!!