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

[Solved] getting row values in grid

1 Answer 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Abdul Kadar
Top achievements
Rank 1
Abdul Kadar asked on 03 Oct 2009, 09:00 AM
Hi,
how to get the row values of the selected item in the  grid with  multirowselection using checkboxes.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Oct 2009, 04:20 AM
Hi Abdul,

I tried following code snippet to get the selected row values when I use GridClientSelectColumn for selecting the rows.


 
protected void Button1_Click(object sender, EventArgs e) 
    foreach (GridDataItem item in RadGrid1.SelectedItems) 
    { 
        string str = item["CompanyName"].Text; // Value
        Response.Write(str); 
    } 

-Shinu.
Tags
Grid
Asked by
Abdul Kadar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or