John,
>In this respect, I am bad. I rarely subclass grids because they are a pain in the ass. I suppose you could use Grid.Column.Setall() to change your captions on init.
Ok, I'll give it a try. May be somebody else can jump into this discussion with their ideas?
We have our subclass of grid with only one method added - SetOrder, which allows to change order clicking on the header. It still needs to add code in Click event of header in each instance of the grid... I believe, there are tonns of other improvements in our grid class.
Unfortunately, I'm not the person, who is responsible for any changes in our classes :(
>
>>If, for example, you have a table with 60 (or more) fields and you want to show all of them in the grid, what should be you second step?
>>
>>I prefer to show fields name at least in Proper(field_name) format, how can I do this programmatically (better include this capability in base grid class method), if I don't know what should be the RowSource for this grid?
>>
>>>Sure! Why not? Why rely on data for information in the UI? It doesn't feel right.
>>>
>>>>>Rarely do I not find myself needing to modify a column caption in a grid IAC, so it's a non-sequiter for me.
>>>>
>>>> Do you mean, you always do it manually????
If it's not broken, fix it until it is.
My Blog