Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Cell appearance not updated after deleting rows
posted
I have a problem deleting rows that have a cell with an image and a tooltiptext. For example:
row1, cell1 has icon and tooltip
row2, cell1 has icon and tooltip
row3, cell1 has no icon and tooltip
row4, cell1 has icon and tooltip

after I delete the row2, the next happens
row1, cell1 has icon and tooltip
row3, cell1 has the icon and tooltip of row4
row4, cell1 has no icon neither tooltip

IMO it seems what's happening is that the datasource and the grid are updated when a row is deleted, but the datasource (?) of the appearance and tooltip not. Here some source code of a failed test (assuming the row I want to delete is in band 1):

UltraGridRow parent = row.ParentRow; //just to select the parent after deleting the row
poolGrid.ActiveRow = null; //remove any reference to active row so after deleting the row there won't be any permanently selected row (grid bug)
row.Selected = false; //the same as the previous line
row.Hidden = true; //test, failed
poolGrid.SuspendLayout(); //test, failed
row.Delete(false);
poolGrid.ResumeLayout(); //test, failed, paired with suspendlayout
parent.Selected = true; //select parent