http://topic.youkuaiyun.com/u/20100912/14/b42949e0-c784-40b3-b2f1-8739a1e03e81.html?39130 看见网友提问,故做了个列子: //cxGrid1DBTableView1 设置属性 //OptionsView.Indicator = True //OptionsView.IndicatorWidth = 40//宽度 void __fastcall TForm1::ADOQuery1AfterOpen(TDataSet *DataSet) { if(DataSet->RecordCount> 0) cxGrid1DBTableView1->OptionsView->IndicatorWidth = Canvas->TextWidth(IntToStr(DataSet->RecordCount)) + 4 ; } //--------------------------------------------------------------------------- void __fastcall TForm1::cxGrid1DBTableView1CustomDrawIndicatorCell(TcxGridTableView *Sender, TcxCanvas *A