Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
How pass from a row to an object ?
posted

Hi,

I'm working with the DataGrid and I've only had to select one row of the grid like that:

evaluacionActual1 = listaEvaluaciones[((DataRecord)(((DataPresenterBase)sender).ActiveRecord)).DataItemIndex];

 

listaEvaluaciones is the DataSource of the DataGrid, and now I want to select more than one row and add the rows to a new list of "Evaluacion". How can I do that ? I know the property "SelectedItems" but I don't know how to manage it or how to cast the selected items to my object.

 

I hope to hear from you soon!

 

thanks!!

 

pd: excuse me for my english!