我的表单上有GridEx对象...
我想用for ... next循环添加一些项目.实际上我找不到任何方法来添加带有自定义数据的新行.
我想在该GridEx对象中选择一个特定的行.例如:我想选择第6行,有什么像mygrid.rows(6).value或类似的东西吗?!
提前致谢...
假设您有一个名为的GridEX控件grid...
要添加新数据:
GridEXRow row = grid.AddItem();
row.BeginEdit();
row.Cells[0].Value = "Whatever"; // refer to columns by index or name
...
row.EndEdit();
Run Code Online (Sandbox Code Playgroud)
要检索特定行:
GridEXRow row = grid.GetRow(5); // returns the 6th row
Run Code Online (Sandbox Code Playgroud)
要选择特定行:
grid.MoveTo(5); // moves the selection to the 6th row
Run Code Online (Sandbox Code Playgroud)