GridListControl - SelectedValue

I just noticed something strange about the GridListControl. I handle the SelectedValueChanged event of the grid to synchronize two grids (btw if theres a better way to do it, plz tell me). If I click on the grid, then the selectedItem is ok and actually reflects the appropriate DataRowView of his DataSource. But when it''s the up/down keys that are used, only the SelectedValue changes.

1 Reply

AD Administrator Syncfusion Team June 1, 2005 10:32 PM UTC

I think you will always get the DataRowView with this code.
private void gridListControl1_SelectedValueChanged(object sender, EventArgs e)
{
	CurrencyManager cm = this.gridListControl1.BindingContext[this.gridListControl1.DataSource] as CurrencyManager;
	DataView dv = cm.List as DataView;
	DataRowView selectDRV = dv[this.gridListControl1.Grid.CurrentCell.RowIndex - 1];
}

Loader.
Up arrow icon