Datagrid - How know the previous row index if a orw changes-

jorgeglez

New member
Joined
May 26, 2005
Messages
1

Hi, good day , this forum is excellent :D

Exposition:
-I have a datagrid, which is binding to a datatable , the datable initially contents a one row.

Escenario:
-Datagrid has a 2 rows, the firts rows is a vacie row(to my datatable), and second row is the marked with ("*") , the user open the form with a grid and his posisionated in the first row and first col ( 0,0 ) , after , the user click on the row marked with astericsk(second row)

Question:
-How know the previos row index to the grid , after the user changes the a row to a other row ?? , because i need validating the row, and if row is vacie and user changes a row marked("*") , i msgbox to the user for warn that row previous is vacie and finally changed the focus to the row vacie.

thanks. greetings from M
 
Back
Top