I have a database with a few records. I am using SQL CE. What i would like to be able to do is well you run the application, all the rows in the grid view should be hidden. I dont want the rows to be deleted.
Then when you click on a button, i want all the rows to be visible in the gridview. Is this possible?
I tried to do it myself but i kept getting an error message:
Quote
Row associated with the currency manager's position cannot be made invisible.
private void MakeInvisible()
{
foreach (DataGridViewRow row in AnimalDataGridView.Rows)
{
row.Visible = false;
}
}
I have written a method that unhides the rows which is called MakeVisible by using the code above but changing the Visible property to "true".
Could anyone advise how I could go about solving this please?
Thanks in advance.
This post has been edited by MarmiteX1: 01 January 2010 - 05:11 PM

New Topic/Question
Reply




MultiQuote




|