This is a Winform C# question.
I have a customized datagridview which is bound to a bindingsource. There is a listener listening to bindingsource.currentchanged event.
When I subscribed the customized datagridview's sorted event and programmatically select a row, the bindingsource.currentchanged event is not fired:
dataGridViewExtended.Sorted += SortedCompleted;
private void SortedCompleted(...){
// Some code to get rowIndex...
dataGridViewExtended.Rows[rowIndex].Selected = true;
}
Why programmatically change the selection of a datagridview row doesn't fire the bindingsource.currentchanged? How can I fire that event?