Cannot edit the data in a cell of a datagridview in c# -
i have problems datagridview in c#. editmode property of editonkeystrokeorf2 , readonly property false. , datasourse of binded list. double clicked on 1 cell(for example, data 40), edit it(change 60). if press enter, data of cell not updated, still 40. i'm wondering reason. tried cellendedit event, , added breakpoint here.
private void datagridview_cellendedit(object sender, datagridviewcelleventargs e) { datagridview.refreshedit(); if (e.columnindex==0) { double key = convert.todouble(datagridview.rows[e.rowindex].cells[0].value); } }
then run program, double click on cell in first column, changed it, pressed enter. , came breakpoint, , data got still old one. knows reason? how can edit clicking on it? lot help!
Comments
Post a Comment