Dec 16, 2011, 9:06 AM
CellSelection and database
Hi,
i need to pass data from cellselection in a gridpanel to another gridpanel.
The only way I find is to pass with RowIndex and it works if I don' change order in first gridpanel. but if I change this order the row index is wrong.
i need to pass data from cellselection in a gridpanel to another gridpanel.
The only way I find is to pass with RowIndex and it works if I don' change order in first gridpanel. but if I change this order the row index is wrong.
CellSelectionModel cell = new CellSelectionModel();
cell = this.GridPubbliche.SelectionModel.Primary as CellSelectionModel;
int row;
row = Convert.ToInt32(cell.SelectedCell.RowIndex.ToString());
this.RowSelectionModel1.SelectRow(row);
So I need to pass by key, a field in my database. How can I pass data from database in cellselectionmodel?