Hi,
I need to get a grid data when paging...actually I have this code and it works good, but may be exist a better way to do this.
| string ids = ""; |
| this.rg_lead.AllowPaging = false; |
| this.rg_lead.DataBind(); |
| foreach (GridDataItem item in this.rg_lead.Items) |
| { |
| if (!ids.Contains("," + item["id"].Text + ",") && ids.Split(',')[0] != item["id"].Text) |
| { |
| ids += item["id"].Text + ","; |
| } |
| } |
| this.rg_lead.AllowPaging = true; |
| this.rg_lead.DataBind(); |
Thanks
