sparky1970
Programmer
Hi,
I'm at a point in a database project I'm writing where I need to call a DBGridTitleClick event from within another handler. I haven't used C++ builder for several years and it's not coming back as easily as I'd like.
I'm using the DBGridTitleClick event to sort the rows in the grid, highlighting and coloring titles etc, but of course when the grid is first shown it's not sorted. I want to call the event from the FormCreate method and send over the inital parameters so that when it's first shown it's sorted by column 0. Can anybody help??
The handler works fine once it's had the initial click. I've tried everything but the kitchen sink but I don't know how to deal with the TColumn *Column parameter which obviously needs to be sent with the call!
Any help much appreciated
Ivan
I'm at a point in a database project I'm writing where I need to call a DBGridTitleClick event from within another handler. I haven't used C++ builder for several years and it's not coming back as easily as I'd like.
I'm using the DBGridTitleClick event to sort the rows in the grid, highlighting and coloring titles etc, but of course when the grid is first shown it's not sorted. I want to call the event from the FormCreate method and send over the inital parameters so that when it's first shown it's sorted by column 0. Can anybody help??
The handler works fine once it's had the initial click. I've tried everything but the kitchen sink but I don't know how to deal with the TColumn *Column parameter which obviously needs to be sent with the call!
Any help much appreciated
Ivan