Need a little direction please...
I have been asked to draw a cell as black on black (redact the cell) unless on a specific row type. Now if the cell was plain text... its a piece of cake; however, the column is a T/F value and gets a checkbox editor control. No matter what I do to the ForeColor and BackColor or Enable/Disable, the edit control remains "visible." Make matters worse, I have not found how I might get at the edit control's Visible property.
Any idea how I might effect this desire? Do I create an unbound column and manually add the edit control to the cell or ??? Sure could use a hint or 2 or 3...
Thx,
Brian
Hello Brian,
Thank you for your feedback.
Please do not hesitate to contact us when you have any questions.
Danko, Mike,
I have not had a chance to code the CreationFilter, DrawFilter, or try the RowAppearance.BackColor property ideas. I will give them a go... hopefully before weeks end. The concept desired by Product is on a next build design and I was trying to pull ahead while at a "slow point." Then again, I may not need either as the gray color of the inactive cell does not look bad at all... at least to me.
Once I have a moment to code the proof again, I will report back. I suspect each will have merit and function to get the desired effect. "Your" answers have never steared me wrong.
Please let us know if you have any further questions.
Hi Brian,
When you make the cell hidden, the gray background you see is the background of the row. So you could simply set the RowAppearance.BackColor.
I think the visible cells will also pick up this color, though, so you might need to also set the RowCellAppearance to color the visible cells. I'm not sure if this can be done through AppStylist, but I don't think so.
A DrawFilter directly controls the drawing of the objects on-screen, so it will override any application styling or property settings you apply.
TY Danko,
If I must get the black background color, I will give this a shot. Currently the gray cell color is acceptable. I was wondering if the color could be influenced by AppStyle and or how does the filter affect styling?