I have a radgrid bound to a datasource. I would like to return all values from a single column (my DataKeyName) column.
I have the AllowPaging property set to true and when my RadGrid loads it loads the first 10 rows and I'm able to page through to the remainder of the data.
My function below works but only returns DataKeyName values for the first 10 rows. If I change the Page Size drop down of the RadGrid to 50 then the function returns 50 values etc
Is there something I can do to get this function to return ALL DataKeyName values and still implement paging?
I have the AllowPaging property set to true and when my RadGrid loads it loads the first 10 rows and I'm able to page through to the remainder of the data.
My function below works but only returns DataKeyName values for the first 10 rows. If I change the Page Size drop down of the RadGrid to 50 then the function returns 50 values etc
List<string> Emails = new List<string>(); foreach (GridDataItem item in RadGrid.MasterTableView.Items) { Emails.Add(item.GetDataKeyValue("Email").ToString()); }Is there something I can do to get this function to return ALL DataKeyName values and still implement paging?