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

To get gridbound column values

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
abinav
Top achievements
Rank 1
abinav asked on 11 Feb 2011, 08:03 AM
Hi

I have to get the gidbound column values in a function called Update cell(i.e)
i have to acces the values of the grid in
private void Updatecell()
{
............
}
how to do it

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Feb 2011, 09:02 AM
Hello,


Iterate through teh items in teh grid and get the cell value using ColumnUniqueName.

C#:
protected void Button5_Click(object sender, EventArgs e)
 {
     foreach( GridDataItem item in RadGrid1.MasterTableView.Items )
     {
         string value = item["ColumnUniqueName"].Text;
     }
 }

Accessing cells and rows

Thanks,
Princy.
Tags
General Discussions
Asked by
abinav
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or