Hello,
I was trying to figure out how to programmatically scroll the grid but the documentation on this site and on the Net did not help much. I finally figured it out. I have this code in the TextChanged event of a textbox so when the user types in some text this code is executed and the first line in the grid that contains the text in the textbox is scrolled too.
Here's my solution:
int numRows = gridname.Items.Count;
for (int i = 0; i < numRows; i++)
if (gridname.Items[i].ToString().Contains(<Text to look for goes in here>)
{
this.gridname.ScrollIntoView(gridname.Items[i]);
break;
}
My grid only contains 1 column.