Me.DataGridDepre.DataSource = table DataGridDepre.AlternatingRowsDefaultCellStyle.BackColor = Color.AliceBlue For Each item In Chklistbox.Items If Not Chklistbox.CheckedItems.Contains(item) Then DataGridDepre.Columns(item.ToString).Visible = False End If Next
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionMe.DataGridDepre.DataSource = table
String.Join(", ", Parametres)
Private Sub DataGridDepreStock_RowStateChanged(sender As Object, e As DataGridViewRowStateChangedEventArgs) Handles DataGridDepreStock.RowStateChanged Dim x As Integer Dim s As String = "" For x = 0 To DataGridDepreStock.Rows.Count s = DataGridDepreStock.RowCount.ToString(x) LblNombre.Text = s Next End Sub
For x = 0 To DataGridDepreStock.Rows.Count s = x LblNombre.Text = s Nextdonne le même résultat
LblNombre.Text = DataGridDepreStock.Rows.Count.ToString()