I assume you can easily find which row has the closest time. (A simple foreach measuring the distance between Now and the Datetime while keeping track of the lowest value would a simple but ineffective way to get this done.)
Once you have the index of the row you want: dataGridView1.FirstDisplayedScrollingRowIndex = index; dataGridView1.Refresh(); Hope that helps, On Wed, Jul 8, 2009 at 8:47 AM, Philip Wobst <[email protected]>wrote: > I have a TreeView with elements that have a date and time column and I > would like to have my application scroll to the position in the TreeView > that is nearest to the current time when the TreeView is displayed. Is there > any way of doing this? > > Any suggestions would be gladly appreciated. > > _______________________________________________ > Gtk-sharp-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > >
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
