BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
this.gridListControl1.SelectedIndex = -1;
to see if that will serve your needs.
this.gridListControl1.VisibleChanged += new EventHandler(gridListControl1_VisibleChanged);
private void gridListControl1_VisibleChanged(object sender, EventArgs e)
{
this.gridListControl1.VisibleChanged -= new EventHandler(gridListControl1_VisibleChanged);
this.gridListControl1.SelectedIndex = -1;
}
public class MyGridListControl : GridListControl { protected override void OnBindingContextChanged(EventArgs e) { //dont call base class //base.OnBindingContextChanged (e); } }The above override worked in the sample to avoid resetting the -1. Now, I did not use .NET Reflector to see what might be being missed (if anything) by not calling the baseclass. So, if you use this override, you probably should take a look to check if you need to add other code to your override.