![]() If (ScrollPosition = liveDataTable.RowCount - 1)ĭ = (dataWin.ScrollPosition + 1) ĭ = dataWin. ScrollPosition = liveDataTable.FirstDisplayedScrollingRowIndex ![]() Is there anyway to stop it from scrolling down unintentionally Any help is welcome. The code I have written for this and unfortunately doesn't work is: private void liveDataTable_Scroll(object sender, ScrollEventArgs e) Sometimes when I open (click or double click) a folder on the navigation pane (folder browser on the left pane of windows explorer), somehow the folder will automatically scrolled down to the bottom, Not always, but sometimes. If the scrollbar is elsewhere, don't scroll. If the scrollbar is at the bottom, scroll down automatically. The behavior I want when a new row is added to the text: ![]() But I want the scroll bar to go down only when it is at the bottom of dataGridView. When I want to read something around the beginning, I scroll up, and even when data updates, the scroll bar doesn't go down, it is good. I have a program that uses dataGridView for showing data that updates automatically every second by adding rows to dataGridView.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |