or
protected void RadListView1_DataBound(object sender, EventArgs e) { if (!IsPostBack && (Request.QueryString["post_id"] != null)) { //First get the page size int pageSize = RadListView1.PageSize; //Then get the reply_id int replyID = int.Parse(Request.QueryString["post_id"]); int iPage = 1; int iPageElementCount = pageSize; foreach(forumPost oPost in odsForumPosts.Select()) { if(oPost.ID == replyID) { RadListView1.CurrentPageIndex = iPage; return; } iPageElementCount--; if(iPageElementCount == 0) { iPage++; iPageElementCount = pageSize; } } } }
(_) Group 1 +------- [_] Item 1 +------- [_] Item 2 +------- [_] Item 3 +------- [_] Item 4 (_) Group 2 +------- [_] Item 5 +------- [_] Item 6 +------- [_] Item 7 +------- [_] Item 8 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
