Click here to Skip to main content
15,887,449 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do i fix this, i have a datagridview that is connected to an sql database table, whenever i refresh the table
(whenever i insert a new data the data source is equals to null and I use a timer that once done calls a method where the data source is set back to the datatable) but the problem is after a refresh, i cant scroll properly in the data gridview, everytime i try to scro down, it automatically scrolls to the top, it kinda locks me at the top. Please help

What I have tried:

I tried datagridview.Rows[0].selected = false after the method is called but it still happens
Posted
Updated 21-Nov-20 7:58am
Comments
Richard MacCutchan 21-Nov-20 12:46pm    
Unless you show the actual code it is impossible to guess what you are doing wrong. Please use the Improve question link above and add the details of the problem.
Member 14997025 21-Nov-20 13:20pm    
thanks! i think i found a solution, there was something wrong with my timer which ended up in a loop of refresh, i forgot to stop the timer . Sorry for taking up your time!

1 solution

Answered only to remove from Unanswered list - solved by OP.
 
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