i've a datagrid with selectionmode=row, multiselection=false, the datasource is a bounded list of List<Carpeta>.
private List<Carpeta> carpetas;
private BoundList<Carpeta> carpetasB;
carpetasB = new DevAge.ComponentModel.BoundList<Carpeta>(carpetas);
carpetasB.AllowEdit = false;
carpetasB.AllowNew = false;
dataGrid1.DataSource = carpetasB;
Well, when i need edit in a dialog form the current row, what i mind to do is:
1- get the selected object
Carpeta c = (Carpeta)dataGrid1.SelectedDataRows;
2- call beginedit in carpetasB, but i need the index of object inside bounded list. I mind IndexOf could be the solution, but it would result slow for a big resultset, isn't it? Is there any other solution to put carpetasB in edit mode?
Juan Pedro Rubio