Home Forums WinForms controls Xceed Grid for WinForms Enter Key Reply To: Enter Key

User (Old forums)
Member
Post count: 23064

ok this is what you want to do

dim c as cell

c = xcdgrid.currentcell

c.movecurrentcell(horizontaldirection.right)

if c is xcdgrid.currrentcell then
‘you were at the last cell of the row

if gettype(xcdgrid.currentcell).isinstanceoftype(insertioncell) then
‘call addnew
else
xccdgrid.movecurrentrow(verticaldirection.down)
xcdgrid.movecurrentcell(horizontaldirection.left)
end if
endif

this should work altough i may have made typos because i dont have .net on this computer…
should still be helpful though

Imported from legacy forums. Posted by Louis (had 643 views)