类型:转载 责任编辑:asp.net 日期:2007/05/23
热门软件下载:
現我程序中用到CxGrid控件,當在表格中輸入資料鍵入[Enter]時,怎樣使它跳到下一列。在DBGrid中是可以的,它有SelectIndex 屬性,但CxGrid控件怎麼來處理?
网友回答:
case cxGrid1DBTableView1.Controller.FocusedColumnIndex of
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15:
begin
cxGrid1DBTableView1.Controller.FocusedColumnIndex:=cxGrid1DBTableView1.Controller.FocusedColumnIndex;
cxGrid1DBTableView1.Controller.FocusedColumnIndex:=cxGrid1DBTableView1.Controller.FocusedColumnIndex+1;
end;