Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Reset Scrolling

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Reset Scrolling
Link Posted: 06-Mar-2006 10:34
If I have a FlyGrid bound to a dataset, and I scroll down or over to the right.  If I reload the FlyGrid with a new dataset, it seems to "remember" the scrolling position.  How do I get the grid to reset to top left scrolling?
Link Posted: 07-Mar-2006 14:46
You can use for these purposes
FlyGrid.ActivePort.EnsureVisible method:
[c#]
if (flyGrid.Rows.Items.Count > 0)
{
flyGrid.ActivePort.EnsureVisible(0, 0);
flyGrid.Selected = flyGrid.Rows.Items[0];
}