Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi..

i m doing windows application in .net c#. we can add scrollbar to gridview... after running application form's scrollbar work fine,but when we use scrollbar of datagridview we cant able to use scrollbar of form. what i have to do for using scrollbar of form after lost focuse of datagridview control on same form?

thank you...
Posted
Comments
Sergey Alexandrovich Kryukov 8-Jul-15 4:09am    
What are you talking about? DataGridView will use the scroll bars properly without any effort from your side.
—SA
ven.in 8-Jul-15 4:29am    
after using scrollbar of gridview we can't able to use scrollbar of form means it not work with mouse middle scrollbutton. my question is how to use scrollbar of form after using scrollbar of gridview which is on that form. if we move scroll button of mouse then it scroll just gridview ones we click on it, after if we click on form we can't make it scroll by using mouse scrolling button.
thanx for reply

plz help
ven.in 10-Jul-15 3:05am    
any one have ans? plz.....

1 solution

just make use of another control click event and set focus to another control on panel or form u will be came out from the gridview and u r scroll bar of form get worked rather gridview scrollbar on scrolling mouse.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900