Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i visible all rows in datagridview
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01520993
Message ID:
01521201
Vues:
34
>Hi all,
> I use vb.net and datagridview BindingSource. I want to build a two button, One is visable false all rows, other one is visable true.
>But i don't know how can finish it. The below code show error message, (Cannot visable Currency position about relation rows).
>How can i do. Thank you !!!
>
>
>DataGridViewRowVisable(False)
>
>
>    Private Sub DataGridViewRowVisable(ByVal b As Boolean)
>        Dim row As DataGridViewRow
>        For Each row In AccessrightDataGridView.Rows
>            row.Visible = b
>        Next
>    End Sub
>
>
I would think you would either make the grid itself visible/not visible or use a separate table as the datasource for the grid. If you use a separate table, when visible is false, you would get an empty dataset; when true, you would load the dataset with datarows.
Linda Harmes
HiBit Technologies, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform