mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CA-213728: Going to Home Server tab can change home server
Even though the correct row have been selected by the time the grid becomes visible, it is not displayed properly. This change set fixes the problem by selecting the row again. Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
parent
6078612916
commit
f6139c713a
1
XenAdmin/Controls/AffinityPicker.Designer.cs
generated
1
XenAdmin/Controls/AffinityPicker.Designer.cs
generated
@ -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
|
||||
//
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user