Devexpress gridview focused to next row by enter -
hi i'm using devexpress
.
i have gridview , want when press enter go down cell of gridview cell.i hope explain . thank you
raise processgridkey
gridcontrol event :
private void dgv_processgridkey(object sender, system.windows.forms.keyeventargs e) { gridcontrol grid = sender gridcontrol; keypress(grid.mainview, e); } private void keypress(baseview sender, keyeventargs e) { var view = (gridview)sender; if (e.keydata == keys.enter) { e.handled = true; dgv.begininvoke(new action(() => { view.closeeditor(); view.movenext(); }), null); } }
Comments
Post a Comment