I am using a RadGrid that is populated by a sqldatasource. I have 2 check boxes on the screen that allow the user to filter how the grid is populated.
My code in the page_load section looks like:
My code in the page_load section looks like:
if (chk1.Checked && !chk2.Checked)
{
SqlDataSource1.FilterExpression =
"SUBSTRING([Id],4,1) > 4";
RadGrid1.Rebind();
}
else
if (chk2.Checked && !chk1.Checked)
{
SqlDataSource1.FilterExpression =
"SUBSTRING([Id],4,1) < 5";
RadGrid1.Rebind();
}
The filter works fine and the grid is populated with the correct info but I have grouping enabled on the radgrid and when a user goes to expand the group you get the following error:Invalid postback or callback argument.
Any Ideas on how to fix this? Thank you.
Rob