简体   繁体   中英

How to get TextEdit value to Cell in GridView in Winforms Devexpress?

I have TextEdit field and GridView in the Form, now I want to get that value of TextEdit to Cell in GridView. How to Complete my Task ??

Assuming your GridControl has a GridView called view , it could look like this:

var editvalue = txtEdit.EditValue;
GridColumn myColumn = //your column
int rowHandle = //your rowhandle

view.SetRowCellValue(rowHandle, myColumn, editvalue);

Also - you should see the online documentation for SetRowCellValue

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