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

Loop all rows and cells of row for RadGridView

0 Answers 102 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sats
Top achievements
Rank 1
Sats asked on 16 May 2012, 10:34 AM

Hello,

I am new to development.

I am using telerik radgridview control.
In the code behind I have assigned the ItemsSource property for the radgridview as below

ObservableCollection<IDictionary> data = new ObservableCollection<IDictionary>();

     IEnumerable dataSource = data.ToDataSource();
      DataGrid.ItemsSource = dataSource;

There are 2 columns and 10 records in the output I see.

I have created a new column through code and added in the grid. I can see that and the data bound using ItemsSource property in the output.

What I want is I want to add image in the first column that I added using code in the radgridview.

I want to loop all the rows in the radgridview. Also I want to loop all cells in the column.

I tried ChildrenOfType<GridViewCell> , ChildrenOfType<GridViewRow> , ChildrenOfType<GridViewRowItem> , I get no values . Also when I tried DataGrid.Items I don't get any results.

Please help me with this.

Thanks

No answers yet. Maybe you can help?

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