I have a grid with many pages (allowpaging = true) and I want onprerender
that some items will be selected = true
I have this code :
protected void Grid_MailingList_PreRender(object sender, EventArgs e)
foreach (GridDataItem item in Grid_MailingList.Items)
string person = SessionMng.MessagesListData.Tables.Rows[i++]["iPersonId"].ToString();
DataView dv = new DataView(SessionMng.SavedMessage.Tables, "iPersonId= '" + person + "'", "", DataViewRowState.CurrentRows);
if (dv.ToTable().Rows.Count > 0)
item.Selected = true;
but it work only in the first page of the grid.
how can I pass on all of the pages at the grid ?