devexpress - How to Get row by key value or visible index in ASPxGridView then change column value? -


hi
in aspxgridview, there way row visibleindex or keyvalue can change column value in it?, mean this:

var row = mygrid.selectrowbykeyvalue(mykeyvalue); or: var row = mygrid.selectrowbyvisibleindex(mykeyvalue);    row["column1"] = true;  

edit:
i'm tring every time hit button want check 1 specific row (i'm using ajax not reload page);

thanks

this can done using aspxgridview.getrow() method. note, changing value in datarow not enough. if want these changes preserved, save them db.

since using unbound columns, should handle customunboundcolumndata event , provide modified data row within event handler. common approach described in providing data unbound columns topic. if not help, please describe in greater details.

update

your approach incorrect. aspxgridview not provide method set text of cell (td). instead, should force grid raise customunboundcolumndata event. can done using aspxgridview's databind method. in event handler, should determine keyfield value of processed row, compare keyfield value of row button clicked , return required value. how implement feature...


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -