This is a migrated thread and some comments may be shown as answers.

RadGridView Row Count

0 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vivian
Top achievements
Rank 1
Vivian asked on 03 Apr 2013, 10:55 AM
Hi Telerik Team,

I have implemented 2 RadGridView, where the number(s) of data in the first RadGridView, depends on the rows of data binded in the second RadGridView. I tried to obtain row count in the second RadGridView after the InitializeComponent(); by using the code below :-

int row_count = this.MyGridView_Second.Items.Count;

However, row_count always return me 0. Can you please help me on this, I really need urgent help here.

Desired outcome of grid will be as below:-

First        Second
------        ----------
1                 A
2                 B
3                 C
4                 D

Data in the "First" column is auto-generated based on the number of rows in "Second" column.

Thank you.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Vivian
Top achievements
Rank 1
Share this question
or