Reset background color of table, if delete was aborted. Also bug fix for B2011-080, removing all rows or all columns will call the Delete function.
This commit is contained in:
parent
c7fc6bae56
commit
ca6c3eab39
@ -1383,7 +1383,10 @@ namespace Volian.Controls.Library
|
|||||||
//string msgs = stpi.HasChildren ? "Are you sure you want to delete this step and its substeps?" : "Are you sure you want to delete this step?";
|
//string msgs = stpi.HasChildren ? "Are you sure you want to delete this step and its substeps?" : "Are you sure you want to delete this step?";
|
||||||
DialogResult results = MessageBox.Show(msgs, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
DialogResult results = MessageBox.Show(msgs, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||||
if (MyFlexGrid != null)
|
if (MyFlexGrid != null)
|
||||||
|
{
|
||||||
MyFlexGrid.Styles.Fixed.BackColor = MyFlexGrid.DefaultFixedBackgroundColor;
|
MyFlexGrid.Styles.Fixed.BackColor = MyFlexGrid.DefaultFixedBackgroundColor;
|
||||||
|
MyFlexGrid.StyleBackColor = MyFlexGrid.DefaultCellBackgroundcolor;
|
||||||
|
}
|
||||||
MyEditItem.IdentifyChildren(false);
|
MyEditItem.IdentifyChildren(false);
|
||||||
if (results == DialogResult.Yes)
|
if (results == DialogResult.Yes)
|
||||||
MyEditItem.RemoveItem();
|
MyEditItem.RemoveItem();
|
||||||
@ -1818,12 +1821,18 @@ namespace Volian.Controls.Library
|
|||||||
#region Table Grid Delete
|
#region Table Grid Delete
|
||||||
private void btnTblDgnRemoveRow_Click(object sender, EventArgs e)
|
private void btnTblDgnRemoveRow_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MyFlexGrid.RemoveSelectedRow();
|
if (MyFlexGrid.AllRowsSelected())
|
||||||
|
btnDelStep_Click(sender, e);
|
||||||
|
else
|
||||||
|
MyFlexGrid.RemoveSelectedRow();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnTblDgnRemoveColumn_Click(object sender, EventArgs e)
|
private void btnTblDgnRemoveColumn_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
MyFlexGrid.RemoveSelectedColumn();
|
if (MyFlexGrid.AllColumnsSelected())
|
||||||
|
btnDelStep_Click(sender, e);
|
||||||
|
else
|
||||||
|
MyFlexGrid.RemoveSelectedColumn();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user