I'm trying to set selected row on Page_Load. The correct Page, total page and row count but no selected row?
I have the following:
// aspx page
...
<telerik:RadGrid
ID="grdList" runat="server"
EnableViewState="false"
Height="328px"
AllowPaging="true"
AllowCustomPaging="true"
AllowSorting="true"
AllowFilteringByColumn="true"
AutoGenerateColumns="False"
PageSize="12"
Skin="WebBlue">
...
// aspx.cs code behind page called from Page_Load
...
// this.pageSize is 12
// qmd.Count is 172
// this.PageIndex is 9
// rowIndex is 11
grdList.DataSource = qmarkRows;
grdList.VirtualItemCount = qmd.Count;
grdList.PageSize = this.pageSize;
grdList.CurrentPageIndex = qmd.PageIndex;
grdList.DataBind();
grdList.MasterTableView.Items[rowIndex].Selected = true;
...
What am i doing wrong?
I have the following:
// aspx page
...
<telerik:RadGrid
ID="grdList" runat="server"
EnableViewState="false"
Height="328px"
AllowPaging="true"
AllowCustomPaging="true"
AllowSorting="true"
AllowFilteringByColumn="true"
AutoGenerateColumns="False"
PageSize="12"
Skin="WebBlue">
...
// aspx.cs code behind page called from Page_Load
...
// this.pageSize is 12
// qmd.Count is 172
// this.PageIndex is 9
// rowIndex is 11
grdList.DataSource = qmarkRows;
grdList.VirtualItemCount = qmd.Count;
grdList.PageSize = this.pageSize;
grdList.CurrentPageIndex = qmd.PageIndex;
grdList.DataBind();
grdList.MasterTableView.Items[rowIndex].Selected = true;
...
What am i doing wrong?