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

How to know the count of column and row in a gridview ?And how to get the cell value in row 2 column 2?

1 Answer 20 Views
GridView
This is a migrated thread and some comments may be shown as answers.
PEIYANG
Top achievements
Rank 1
PEIYANG asked on 02 Sep 2012, 07:46 AM
How to know the count of  column and row in a gridview ?And how to get the cell value in row 2 column 2?

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 03 Sep 2012, 06:14 AM
Hi,

You can do :

int columnCount = this.RadGridView1.Columns.Count;
int rowCount = this.RadGridView1.Items.Count;


All the best,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
PEIYANG
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or