Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i visible all rows in datagridview
Message
 
To
15/08/2011 05:25:33
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01520993
Message ID:
01521201
Views:
35
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform