Results 1 to 7 of 7

Thread: [RESOLVED] Enable/Disable Column in a DataGrid?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Michigan
    Posts
    304

    Resolved [RESOLVED] Enable/Disable Column in a DataGrid?

    I tried this but it seems to do absolutly nothing.

    VB Code:
    1. Private Sub Session5SupportedCheckBox_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Session5SupportedCheckBox.CheckedChanged
    2.         If Session5SupportedCheckBox.Checked = True Then
    3.             dtService.Columns.Item(6).ReadOnly = False
    4.             DataGridServices.Refresh()
    5.         Else
    6.             dtService.Columns.Item(6).ReadOnly = True
    7.             DataGridServices.Refresh()
    8.         End If
    9.     End Sub
    Last edited by fdunford; Sep 27th, 2005 at 02:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width