C
colin
Hi,
I need to tell how many rows are visible on the screen,
in my DataGridView control
so that I can ensure my newly selected row is visible
without doing any unecessry scrolling,
I thought RowCount would give me this :-
Summary:
Gets or sets the number of rows displayed in the
System.Windows.Forms.DataGridView.
but this isnt meaning the number dispalyed on the screen,
im not sure what it is, it serems to be the same as the number of rows in
the coollection.
I gues it just truncates the number of rows.
it conveniently tells you the first visible row
but not the last it seems, unless I am missing something.
is there another way to get this info ?
or do i have to work it out using pixels :s
Colin =^.^=
I need to tell how many rows are visible on the screen,
in my DataGridView control
so that I can ensure my newly selected row is visible
without doing any unecessry scrolling,
I thought RowCount would give me this :-
Summary:
Gets or sets the number of rows displayed in the
System.Windows.Forms.DataGridView.
but this isnt meaning the number dispalyed on the screen,
im not sure what it is, it serems to be the same as the number of rows in
the coollection.
I gues it just truncates the number of rows.
it conveniently tells you the first visible row
but not the last it seems, unless I am missing something.
is there another way to get this info ?
or do i have to work it out using pixels :s
Colin =^.^=