Re: DataGridView.CurrentCell scrolling
- From: Herb <stullhe104@xxxxxxxxxxxxxxxx>
- Date: Thu, 14 Aug 2008 12:03:04 -0700
Thanks for the reply. My reason for NOT wanting to autoscroll is this:
The cells in my grid are tall and I am using a context menu on a
DataGridView. If the "right-clicked" cell is not in the top row or is
partially out of view, the context menu appears where they clicked, but the
cell moves to the top of the grid.
Now it looks like they right-clicked on the cell beneath the actual target
cell.
I supposed I could reposition the context menu with the cell. I'm not sure
how to do that, but I haven't tried yet.
--
stullhe104
"Ralph" wrote:
.
"Herb" <stullhe104@xxxxxxxxxxxxxxxx> wrote in message
news:FB107406-7D01-4CA7-8D9F-601117BD4E7E@xxxxxxxxxxxxxxxx
The documentation for DataGridView.CurrentCell states:is
"When you set a cell as the current cell, it will scroll into view if it
not currently displayed."
Is there any way to stop this behavior?
No. Not with that control. It is a 'feature'.
When you think about it, why would you want any other behavior? If you want
to track unique cells without User awareness take a look at Bookmarks. (I
think it takes Bookmarks.)
Which leads to the second part - this is a newsgroup dedciated to classic VB
users. You need to post to a dotnet newsgroup. (They will have 'dotnet' in
the title.)
-ralph
- Follow-Ups:
- Re: DataGridView.CurrentCell scrolling
- From: Zhi-Xin Ye [MSFT]
- Re: DataGridView.CurrentCell scrolling
- References:
- DataGridView.CurrentCell scrolling
- From: Herb
- Re: DataGridView.CurrentCell scrolling
- From: Ralph
- DataGridView.CurrentCell scrolling
- Prev by Date: Rounding error using vbContainerSize
- Next by Date: Re: DataGridView.CurrentCell scrolling
- Previous by thread: Re: DataGridView.CurrentCell scrolling
- Next by thread: Re: DataGridView.CurrentCell scrolling
- Index(es):
Relevant Pages
|