Hello Friends,
I am writing a Windows Form which contains a DataGrid bound to a DataSet. The requirement has come up asking me to implement 2 buttons (Up and Down). If a user clicks on the Up button, the currently selected row in the datagrid should go up and same with down.
Say initially the Datagrid was:
1
2 <-- currently this is the selected row in the datagrid
3
when i click UP button, the grid should change as:
2 <-- currently this is the selected row in the datagrid
1
3
Hope i am clear. I am not sure how to implement this. Can somebody help me on this?
Thanks
I am writing a Windows Form which contains a DataGrid bound to a DataSet. The requirement has come up asking me to implement 2 buttons (Up and Down). If a user clicks on the Up button, the currently selected row in the datagrid should go up and same with down.
Say initially the Datagrid was:
1
2 <-- currently this is the selected row in the datagrid
3
when i click UP button, the grid should change as:
2 <-- currently this is the selected row in the datagrid
1
3
Hope i am clear. I am not sure how to implement this. Can somebody help me on this?
Thanks