Merge pull request #1084 from GaborApatiNagy/master_CA-213728

CA-213728: Going to Home Server tab can change home server
This commit is contained in:
Mihaela Stoica 2016-07-25 16:45:45 +01:00 committed by GitHub
commit 54849d4f5e
2 changed files with 12 additions and 0 deletions

View File

@ -109,6 +109,7 @@ namespace XenAdmin.Controls
this.ReasonColumn});
resources.ApplyResources(this.ServersGridView, "ServersGridView");
this.ServersGridView.Name = "ServersGridView";
this.ServersGridView.VisibleChanged += new System.EventHandler(this.ServersGridView_VisibleChanged);
//
// ImageColumn
//

View File

@ -216,6 +216,17 @@ namespace XenAdmin.Controls
else
ServersGridView.Select();
}
bool selectedOnVisibleChanged = false;
private void ServersGridView_VisibleChanged(object sender, EventArgs e)
{
if (!selectedOnVisibleChanged)
{
selectedOnVisibleChanged = true;
SelectSomething();//CA-213728
}
}
}
internal class ServerGridRow : DataGridViewExRow