All the problem which I have asked is sorted out now I want to get the first and last cells values to the textbox but Datagrid view can change it the amount of row when I do the selection