471,355 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,355 software developers and data experts.

DataGridView and Selected Row

If I can explain it.

I have a DataGridView with say 100 rows, 30 of which will display on the
screen.

If I drag down the vertical scroll bar so that say row 50 is the centre
row vertically and click on the row header, the row is selected ok but
it is positioned at the bottom of the control as the second last row on
the screen.

My question: How do I make it so that when I select a row, vertical
movement doesn't occur ?
Jun 27 '08 #1
2 1900
I can't reproduce this; are you sure there aren't any other events firing to
cause this to happen?

"Ian Semmel" <an****@rocketcomp.com.auwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
If I can explain it.

I have a DataGridView with say 100 rows, 30 of which will display on the
screen.

If I drag down the vertical scroll bar so that say row 50 is the centre
row vertically and click on the row header, the row is selected ok but it
is positioned at the bottom of the control as the second last row on the
screen.

My question: How do I make it so that when I select a row, vertical
movement doesn't occur ?

Jun 27 '08 #2
Probably are. DataGridViews and me aren't 100% compatible.

If it's not a feature, I will play around with it some more.

"Nathan" <ms********@macgregorfamily.netwrote in message
news:98**********************************@microsof t.com:
I can't reproduce this; are you sure there aren't any other events
firing to
cause this to happen?

"Ian Semmel" <an****@rocketcomp.com.auwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
If I can explain it.

I have a DataGridView with say 100 rows, 30 of which will display on
the
screen.

If I drag down the vertical scroll bar so that say row 50 is the
centre
row vertically and click on the row header, the row is selected ok but
it
is positioned at the bottom of the control as the second last row on
the
screen.

My question: How do I make it so that when I select a row, vertical
movement doesn't occur ?
Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Riley | last post: by
3 posts views Thread by =?Utf-8?B?Sm9obiBCdW5keQ==?= | last post: by
7 posts views Thread by =?Utf-8?B?TG9zdEluTUQ=?= | last post: by
2 posts views Thread by colin | last post: by
6 posts views Thread by hzgt9b | last post: by
reply views Thread by =?Utf-8?B?QXR1bCBSYW5l?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.