Re: DataGridView.CurrentCell bug?
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Well, as is often the case I have found the cause, but not the reason.
At design time I set grdMain's ContextMenu to cmsGrid. IN CODE I set cmsGrid
to be the ContextMenu for the two read / write columns in question. This
made them work differently, although I'm not sure why. When I removed the
column references, leaving only grdMain.ContextMenu = frmMain.cmsGrid then
it worked properly.
I'd appreciate any insight anyone cares to offer, thanks.
-------------------------------------
"Barry Seymour" <bseymour@xxxxxxxxxxx> wrote in message
news:u2hOV$K8HHA.4436@xxxxxxxxxxxxxxxxxxxxxxx
In VB.NET 2005 I am trying to set the text and enabled status of a
ToolStripMenuItem in the CurrentCell event of a DataGridView. For some
reason the CurrentCell property only evaluates correctly the first time I
call it.....
.
Relevant Pages
- Re: Problems with dynamically adding menu items to ContextMenu
... Rich: Was having similar problems the other night - just wanted to give you ... was firing after the built in ContextMenu processing of the WinForm control ... I dynamically add submenu items to an existing ... design time and they always work correctly. ... (microsoft.public.dotnet.framework) - Re: INSERT command doesnt work in Access
... > The reason I am using this is rather to allow quick assessment of ... > meaning of fields in complex query at design time not at run time. ... Why would I use notepad for any real development? ... if you are the only one use a database its merely a personal preference. ... (microsoft.public.dotnet.framework.adonet) - Re: INSERT command doesnt work in Access
... The reason I am using this is rather to allow quick assessment of meaning of ... fields in complex query at design time not at run time. ... but imagine that someone uses date in text format for some reason. ... One of reasons Microsoft advices against hungarian notation now (yet 3-5 ... (microsoft.public.dotnet.framework.adonet) - Re: Aligning Controls at Designtime
... much whatever panels or forms you choose at design time. ... Hmmm. ... One more reason for me to start looking at Delphi... ... (microsoft.public.vb.general.discussion) - Size of form at runtime
... some reason, a form I'm working on appears larger (with 1" or so extra space ... at bottom and right) at runtime than it does at design time. ... if I resize the form again to be about the same size as it ... remembering the biggest dimensions or something and using them. ... (microsoft.public.access.forms) |
|