Hi,
i am using RadGridView i have a toggle button in one of the grid column, my question is when window loaded i need to set the togglebutton.ischecked to true, when i am trying to loop to the grid i am getting only the first page rows, how can i get all the grid rows.
i have 200 records
IList<GridViewRow> rows = radGridView.ChildrenOfType<GridViewRow>();
foreach (GridViewRow row in rows)
{
if (!(row is GridViewNewRow) && !(row is GridViewHeaderRow))
{
GridViewToggleButton toggleButton = row.Cells[0].ChildrenOfType<GridViewToggleButton>().FirstOrDefault();
if (toggleButton != null )
{
toggleButton.IsChecked = true;
}
}
}
thanks
sarag.
i am using RadGridView i have a toggle button in one of the grid column, my question is when window loaded i need to set the togglebutton.ischecked to true, when i am trying to loop to the grid i am getting only the first page rows, how can i get all the grid rows.
i have 200 records
IList<GridViewRow> rows = radGridView.ChildrenOfType<GridViewRow>();
foreach (GridViewRow row in rows)
{
if (!(row is GridViewNewRow) && !(row is GridViewHeaderRow))
{
GridViewToggleButton toggleButton = row.Cells[0].ChildrenOfType<GridViewToggleButton>().FirstOrDefault();
if (toggleButton != null )
{
toggleButton.IsChecked = true;
}
}
}
thanks
sarag.