简体   繁体   中英

How to get Particular cell value from Previous row to Current Row in Gridview ?? Winforms Devexpress

I Have GridView and If I select any Item from 1st Column(Repository Item LooupEdit) remaining Columns fill automatically regarding to that particular Item Selected. Now in new row i need to get the 3rd cell/column value of previous row and perform some calculation and set in new row.? How to complete my task ? help me.

Use the GridView's GetRowCellValue method:

object Value = MyGridView.GetRowCellValue("ColumnName", MyGridView.FocusedRowHandle - 1);

See:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM