This question is locked. New answers and comments are not allowed.
Hi,
I am facing a strange problem when a gridview have vartical scrollbar.
If grid can show 5 rows at a time and you have 10 records, then you can see the scrollbars in the GridView. Now you scroll the grid and select any row, greater than 5. Now click on button on your page. The button click event should contains code to provide null source to Grid. You will get an error, when you assign null ItemSource to grid. I can't understand why this is happening?
What I want to do is -
When I click on button, I want to have the selected item in the grid and after that I want to clear the grid data.
Can anyone suggest me, What's wrong I am doing??
Thanks in advance for your suggestion.
Regards,
Niranjan
I am facing a strange problem when a gridview have vartical scrollbar.
If grid can show 5 rows at a time and you have 10 records, then you can see the scrollbars in the GridView. Now you scroll the grid and select any row, greater than 5. Now click on button on your page. The button click event should contains code to provide null source to Grid. You will get an error, when you assign null ItemSource to grid. I can't understand why this is happening?
What I want to do is -
When I click on button, I want to have the selected item in the grid and after that I want to clear the grid data.
Can anyone suggest me, What's wrong I am doing??
Thanks in advance for your suggestion.
Regards,
Niranjan
