Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 GridView,如果我从第一列(存储库项目 LooupEdit)中选择任何项目,剩余的列会自动填充关于选定的特定项目。现在在新行中,我需要获取前一行的第三个单元格/列值并执行一些计算并在新行中设置。?如何完成我的任务?帮我。
使用 GridView 的 GetRowCellValue 方法:
object Value = MyGridView.GetRowCellValue("ColumnName", MyGridView.FocusedRowHandle - 1);
看: