Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have noticed that `OwningColumn` is not in the intellisense list of properties for `DataGridView.CurrentCell.` although it works fine. There was also another i can't think of right now but basically i would like to know,

A.) Why are there hidden properties

B.) Is there away for me to 'Show all'

What I have tried:

Looking through options, Google.
Posted
Updated 8-Jun-17 8:07am

I'd suspect that your version of VS has become confused - it happens from time to time with me as well - my version is showing the CurrentCell property of the myDataGridView instance in intellisense with no problems.

Try shutting down VS and restarting it - chances are that will bring it back.
"Sorry what i mean is `OwningColumn` doesn't show as a property for CurrentCell yet it is one"
I just tried:
Private Sub myButton_Click(sender As Object, e As EventArgs) Handles myButton.Click
    If myDataGridView.CurrentCell.OwningColumn.Name = "hello" Then
        MessageBox("Yep!")
    End If
    If myDataGridView.
End Sub
And it was:
Type "If", space, "myD" dot "Cu" dot "Ow" dot "N" space
With each term appearing in intellisense and autocompleting as I type.

That's with VS Community 2013, on a test WinForms VB app.
So what is different?
 
Share this answer
 
v2
Comments
BeginnerCoderPete 5-Jun-17 14:37pm    
Sorry what i mean is `OwningColumn` doesn't show as a property for CurrentCell yet it is one.

If DataGridView1.CurrentCell.OwningColumn.Name = "Dog" then
 'Whatever
End if


works fine. No amount of restarts has made it show up.
OriginalGriff 5-Jun-17 14:55pm    
Answer updated.
BeginnerCoderPete 5-Jun-17 15:19pm    
I am doing nothing different to you other than i am on VS2017 Community.

It works fine when typed, and after i type 'OwningColumn' i get the intellisense for 'OwningColum' but i just do not get 'OwningColumn' in the Intellisense for CurrentCell
OriginalGriff 5-Jun-17 15:40pm    
Ah! It's a bug in 2017:
https://developercommunity.visualstudio.com/content/problem/48556/vs-2017-vb-the-intellisense-for-the-datagridview-c.html
Not a lot you can do, except wait for MS to fix it.
But I've been waiting for a bug fix since VS2005, so don't hold your breath...
BeginnerCoderPete 5-Jun-17 16:24pm    
Ah ok, so hopefully 99% of things are going to be showing then, i haven't missed a checkbox in the options somewhere. Doesn't seem like a big fix to make but we'll see
Quote:
OriginalGriff

Ah! It's a bug in 2017:
https://developercommunity.visualstudio.com/content/problem/48556/vs-2017-vb-the-intellisense-for-the-datagridview-c.html
Not a lot you can do, except wait for MS to fix it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900