Friends, i have a form, and i have a wingrid, I have formed the grid in order that when of click on a cell the complete row is selected, I have also a variable of type varietyEntity,howI can turn the row selected in a type varietyEntity, In wpf I was doing something as this
vCliente = ((DataRecord)this.grdClientes.ActiveRecord).DataItem as cliente;
But i try with this
v = ugVariedades.Rows[0] as variedad;
And i have this error
No se puede convertir el tipo 'Infragistics.Win.UltraWinGrid.UltraGridRow' en 'Entidades.variedad'
Other cuestion, In that event is the one that controls the change of row??
If i understand what you are trying to do, then I think you need to use the ListObject property of the row.
v = ugVariedades.Rows[0].ListObject as variedad;
tanks work very well, but how i can know what is de index for de current row
v = ugVariedades.Rows[CURREN ROW].ListObject as variedad;