cxgrid如何遍历单元格

简介:
procedure Tfrm_operator.cx_qixieKeyDown(Sender: TObject; var Key: Word;
 Shift: TShiftState);
begin
 if ((Chr(Key) = #13) or (Chr(key) = #9)) and
   (cx_qixie.Controller.FocusedColumnIndex + 1 < cx_qixie.VisibleColumnCount) then
 begin
     cx_qixie.Controller.FocusedColumnIndex := cx_qixie.Controller.FocusedColumnIndex+1;
 end
 else if ((Chr(Key) = #13) or (Chr(key) = #9)) and
   (cx_qixie.Controller.FocusedColumnIndex + 1 = cx_qixie.VisibleColumnCount) then
 begin
   if (cx_qixie.Controller.FocusedRowIndex +1 < cx_qixie.DataController.RowCount) then
   begin
     cx_qixie.Controller.FocusedRowIndex := cx_qixie.Controller.FocusedRowIndex+1;
     cx_qixie.Controller.FocusedColumnIndex := 0;
   end
   else
   begin
     ActiveControl := btn_add;
     exit;
   end;
 end;

end;









本文转自鹅倌51CTO博客,原文链接: http://blog.51cto.com/kaixinbuliao/1275088,如需转载请自行联系原作者








相关文章
|
6月前
|
JavaScript 前端开发 Java
71jqGrid 分组表头 - 没有合并列的样式
71jqGrid 分组表头 - 没有合并列的样式
16 0
|
Python
【Excel自动化办公Part2】:向某个格子里写入内容、append()插入行、在表格中插入公式、插入行和列、删除行和列、移动格子
【Excel自动化办公Part2】:向某个格子里写入内容、append()插入行、在表格中插入公式、插入行和列、删除行和列、移动格子
170 0
【Excel自动化办公Part2】:向某个格子里写入内容、append()插入行、在表格中插入公式、插入行和列、删除行和列、移动格子
|
C# 索引
C#编程-71:dataGridView获取行列坐标索引和值
C#编程-71:dataGridView获取行列坐标索引和值
338 0
|
JavaScript 前端开发 .NET