We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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 05:32 PM

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.
Live Chat Icon For mobile
Up arrow icon