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?";
|
||||
DialogResult results = MessageBox.Show(msgs, "Verify Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||
if (MyFlexGrid != null)
|
||||
{
|
||||
MyFlexGrid.Styles.Fixed.BackColor = MyFlexGrid.DefaultFixedBackgroundColor;
|
||||
MyFlexGrid.StyleBackColor = MyFlexGrid.DefaultCellBackgroundcolor;
|
||||
}
|
||||
MyEditItem.IdentifyChildren(false);
|
||||
if (results == DialogResult.Yes)
|
||||
MyEditItem.RemoveItem();
|
||||
@ -1818,11 +1821,17 @@ namespace Volian.Controls.Library
|
||||
#region Table Grid Delete
|
||||
private void btnTblDgnRemoveRow_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MyFlexGrid.AllRowsSelected())
|
||||
btnDelStep_Click(sender, e);
|
||||
else
|
||||
MyFlexGrid.RemoveSelectedRow();
|
||||
}
|
||||
|
||||
private void btnTblDgnRemoveColumn_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (MyFlexGrid.AllColumnsSelected())
|
||||
btnDelStep_Click(sender, e);
|
||||
else
|
||||
MyFlexGrid.RemoveSelectedColumn();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user