Please forgive me if I do not articulate this in the most comprehensive way, I am new to .net.
What I am trying to do is: Have a checkbox external to a grid-view that once selected, updates the grid-view to ONLY display rows with a certain value. In this case either "YES" or "NO". Once the user selects the checkbox, it will only display rows that have column value of "YES".
I would prefer to do this in a way that does not require recreating the entire grid-view, but rather only displaying the rows that have the "YES" value in them. This is all I've gotten so far and I don't know if I'm on the right path:
protected void chkbox_Click(object sender, EventArgs e)
{
AppError curError = null;
User curUser = null;
if (chkboxlbl.Checked == true) //if checked then jump into next step
{
foreach (GridViewRow row in GridViewAppts.Rows)
{
// not sure what to put here yet.
}
}
}