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

[Solved] Grid rows data

2 Answers 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jols
Top achievements
Rank 2
Jols asked on 30 Apr 2009, 08:57 AM
hello to all expert in telerik

                          i would like to ask help once again on how am i going to get all the rows values in a grid..please help

sample codes is higly appreciated

thanks

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 30 Apr 2009, 09:09 AM
Hello Jols,

Please examine the following link:
Accessing cells and rows

Let us know if you need more information.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Princy
Top achievements
Rank 2
answered on 30 Apr 2009, 10:35 AM
Hello Jols,

You can loop through the rows in the grid and access a cell value using the column UniqueName:
aspx:
 <telerik:GridBoundColumn UniqueName="Name" DataField="Name"></telerik:GridBoundColumn> 

c#:
protected void Button1_Click(object sender, EventArgs e) 
    { 
        foreach (GridDataItem dataItem in RadGrid1.Items) 
        { 
            string strtxt = dataItem["Name"].Text; 
        } 
    } 

Thanks
Princy.
Tags
Grid
Asked by
Jols
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Princy
Top achievements
Rank 2
Share this question
or