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

[Solved] gridItemCollection.OfType<> Example

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sai Prashad Patro
Top achievements
Rank 1
Sai Prashad Patro asked on 31 Aug 2009, 11:17 AM
Hi,

I need an example how to use OfType<> for the grids

How can i get to know how many items in the grid are GridEditableItem?

Can any one help please. thank you,


Regards,

Sai

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 31 Aug 2009, 12:10 PM
Hi Sai,

Try the following code snippet to access the  Grid rows in edit mode.

CS:
 
        int editedRowsCount = RadGrid2.EditItems.Count; 
        foreach (GridEditableItem editItem in RadGrid2.EditItems) 
        {  
         
        } 


Thanks
Princy
Tags
Grid
Asked by
Sai Prashad Patro
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or