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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridListControl - SelectedValue

Thread ID:

Created:

Updated:

Platform:

Replies:

29730 Jun 1,2005 04:57 PM Jun 1,2005 06:32 PM Windows Forms 1
loading
Tags: GridControl
Martin Cyr
Asked On June 1, 2005 04:57 PM

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 06: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];
}

CONFIRMATION

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.

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

;