>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.