c# - How deselect row in grid of devexpress - winforms -
i have 1 grid property multiselected set false, , need clear selection in current grid when user clicks button. read in documentation 2 methods, doesn't work when user can select 1 row.
here attempt solve this:
gridview1.clearselection(); foreach (var in gridview1.getselectedrows()) gridview1.unselectrow(i);
i hope me. in advance!
when multiple selection off, grid not allow unfocusing row , contains focused row. see issue additional information.
the getselectedrows , clearselection documentation states these nothing if multi-selection disabled.
there couple of sample projects in support center regarding row selection:
http://www.devexpress.com/support/center/example/details/e13 http://www.devexpress.com/support/center/example/details/e135
the best place ask support devexpress related questions support center. if describe trying achieve, respond , helpfully.
Comments
Post a Comment