Board index » cppbuilder » Can I Draw a Simbol in my DBGrid Titel so i canshow the sorting column + Asc/Desc
Jochanan
CBuilder Developer |
Jochanan
CBuilder Developer |
Can I Draw a Simbol in my DBGrid Titel so i canshow the sorting column + Asc/Desc2006-01-30 07:02:59 PM cppbuilder90 Hi, Is there a way to Show what column is selected and how the selection gows in a DBGrid I 'm using now 1 void __fastcall TFormBaseDBList::DBGridListDrawColumnCell(TObject *Sender, const TRect &Rect, int DataCol, TColumn *Column, TGridDrawState State) 2 { 3 if (State.Contains(gdFixed)) 4 { 5 if (Column->Index == mColumnToSort) 6 { 7 TRect AA = Rect; 8 DrawSelection(AA); 9 } 10 } 11 DBGridList->DefaultDrawColumnCell(Rect,DataCol,Column,State); 12 RzDBGrid1->DefaultDrawColumnCell(Rect,DataCol,Column,State); } //--------------------------------------------------------------------------- but this is not drawing the titel it never gets to row 4. Any Sugetions Jvdniet |
JD
CBuilder Developer |
2006-01-31 02:33:01 PM
Re:Can I Draw a Simbol in my DBGrid Titel so i canshow the sorting column + Asc/Desc
"Jochanan" < XXXX@XXXXX.COM >wrote:
Quote
|