Hi,
I have a datagrid (rather a dataset I guess) that I update with
addStatusRow ( ... ). It basically is a Status that adds lines as
something occurs in my thread. As lines are entered, when it gets to
the bottom of the grid, I would like it to automatically scroll, so
the user does not need to use the scroll bar.
Is this easily done?
I have the code:
dsStatus1.Status.AddStatusRow(ibrFixSession.Status ,
System.DateTime.Now.ToLongDateString() + " " +
System.DateTime.Now.ToLongTimeString());
AddToLog(ibrFixSession.Status);
dataGridSessionFix.CurrentRowIndex =
dsStatus1.Status.Rows.Count;
I was hoping that the last line will scroll my datagrid to the last
record, but does not work. The dsStatus1 is bound to the grid. It
is the dsStatus1 that has the rows added. Any ideas if or how I
could get this to work?
Thanks!