In a data grid, I have a data grid with a column like this:

Dim colAdd As New HeaderAndDataAlignColumn
        With colAdd
            .MappingName = "Address"
            .HeaderText = "Nationality"
            .Width = 150
            .Alignment = HorizontalAlignment.Center
            .TextBox.Enabled = False
            .ReadOnly = True
            .NullText = ""
        End With

How can I disable this column entirely, I mean even disable focus event (can't click, can't use Tab or arrow keys, etc.)

Recommended Answers

All 3 Replies

Doesn't Enabled=False do that

you can set your column readonly property true .


Thanks for your help, but as you could see, I had already set these as you said and... nothing happened. I wish that we could even disable Tabstop, but TabStop = False do "Nothing". I wonder if there's a way to solve this, really!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.