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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridListControl - SelectedValue

Thread ID:





29730 Jun 1,2005 08:57 PM UTC Jun 1,2005 10:32 PM UTC WinForms 1
Tags: GridControl
Martin Cyr
Asked On June 1, 2005 08:57 PM UTC

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.

Administrator [Syncfusion]
Replied On 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];


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon