Click here to Skip to main content
12,622,741 members (27,841 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB VB.NET
hi,
the first visible column of my datagridview is a checkbox . the gridview has 3 rows, and i want some controls to appear when the user checks the checkbox of the second row and disappear when the checkbox is unchecked.
 
i tried this method, but the efect is done only the first time the checkbox is checked, then the controls disappear and dont show anymore
 
here is my code:
Sub ApMICDestinationTypesDataGridView_CellContentClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles ApMICDestinationTypesDataGridView.CellContentClick
 
       If ApMICDestinationTypesDataGridView.Columns(e.ColumnIndex).HeaderText = "Zgjidh" Then
 
           Dim isChecked As Boolean = ApMICDestinationTypesDataGridView.Rows(e.RowIndex).Cells(e.ColumnIndex).Value
 
           If ischecked = False Then
 
               GroupTypeIDLabel.Visible = True
               GroupTypeIDComboBox.Visible = True
 
           Else
               GroupTypeIDLabel.Visible = False
               GroupTypeIDComboBox.Visible = False
 
           End If
       End If
 
   End Sub

i would appreciate any kind of help
Posted 15-Jan-13 1:59am

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100