I'm trying to scroll to bottom of a DataGridView in a C# WinForm.
This code works with a TextBox:
textbox_txt.SelectionStart = textbox_txt.Text.Length;
textbox_txt.ScrollToCaret();
... but I don't know how to do it with a DataGridView. Any help, please?
To scroll to bottom of
DataGridView
try this.As a commercial programmer, I use a C# DLL to handle all my DataGridView projects which gives me language freedom for whatever project I undertake. All of my programs trap all key-presses so that I can use them for my own purposes. For DataGridView scrolling, I use the PageUp/PageDown keys for a single page, Ctrl/Page for single line and Alt/Page for top (Up) and bottom (Down). C# code and Basic calling sequence as follows: