I have a column with the Style of the column set to button. On row init I check cell values to determine if the button needs to be displayed(I do something like this e.row.cell("button").hidden = true).
This has been working fine but the boss doesn't like the blank cell that is left were the button was. I have tried everything to remove to grey cell but can seem to make it transparent. I set the column header transparent but can't seem to figure this one out.
Anyone have any idea?
Thanks
This is the version I'm using : NetAdvantage for .NET 2007 Vol. 3 CLR 2.0
Hi,
Alright so we have a few steps to take care of this scenario.
Step 1: Set the WinGrid.DisplayLayout.Override.CellAppearance.BackColor = Window or whatever color you would like your cells to appear normally.
Step 2: Set the WinGrid.DisplayLayout.Override.RowAppearance.BackColor = Transparent.
Step 3: Set the cell to hidden in your conditions, as this will cause the CellAppearance to be ignored, and use the RowAppearance.
According to how I'm reading what you want to do that should solve this scenario for you. I cannot take all the credit for this one as I had some help, thanks Chris.
Sweet...it worked perfect.