Hello Telerik Team,
I am using Telerik Silverlight RadGridView in my application. I am facing a strange issue while retrieving all rows from that grid view.
I want to traverse through the grid view and want to store every row's cell 0's all contents in an array. For that my approach is as follows:
But when i am executing my application, gridview.Items.Count returns me 20 whereas count of gridViewRows returns 14 which should be also 20 as there are 20 rows in grid view.
I had noticed following thing:
I am using radgridview with vertical scroll bar. If 14 rows are visible then gridViewRows returns 14 count. When i decreased the height of grid view and whene there are 10 rows are visible then gridViewRows returns 10 count.
Why it is not returning me the correct count of rows? Is there any property of grid view scroll bar that i have to set?
Waiting for your valuable response.
Regards,
Kaustubh.
I am using Telerik Silverlight RadGridView in my application. I am facing a strange issue while retrieving all rows from that grid view.
I want to traverse through the grid view and want to store every row's cell 0's all contents in an array. For that my approach is as follows:
var gridViewRows = gridview.ChildrenOfType<
GridViewRow
>();
for (int i = 0; i < gridview.Items.Count; i++)
{
arr[i]=gridViewRows[i].Item.ToString();
}
But when i am executing my application, gridview.Items.Count returns me 20 whereas count of gridViewRows returns 14 which should be also 20 as there are 20 rows in grid view.
I had noticed following thing:
I am using radgridview with vertical scroll bar. If 14 rows are visible then gridViewRows returns 14 count. When i decreased the height of grid view and whene there are 10 rows are visible then gridViewRows returns 10 count.
Why it is not returning me the correct count of rows? Is there any property of grid view scroll bar that i have to set?
Waiting for your valuable response.
Regards,
Kaustubh.