I have previously developed a real neat app using a real grid, but it turned out that I needed to allocate a huge grid quickly, and I decided to convert it to a Virtual grid, and this is when I encountered lots of problems with finding the right way of doing
things in documentation. In particular,
How do you change the font and backcolor of a grid cell dynamically? For real grid, I would just assign a view with predefined FGColor and BackColor to the grid1[i,j].view and that was it.
However, for virtual grid it didn't work, and I ended up just using
public object GetValue(CellContext cellContext)
cellContext.Cell.View.ForeColor = bOverLimit? Color.Red : Color.Green;
cellContext.Cell.View.BackColor = Color.Blue;
This worked fine for background, but foregraund gets messed up a lot, so now I see it is not going to work.
My second question is how do you convert a cell to a button and back dynamically. For some reason, virtual button is an abstract class.
The third question (once I am asking ) is how to place the grid into a real only state, when the annoying textbox does not show up oncellclick.
Overall, the documentation says "it works exactly as grid" but it looks like it is a bit of exaggeration... may be a small sample would be very helpful. I looked at existing samples, but they are all real grid, are not they.
I really appreciate any feedback, but still will keep looking for solutions myself too.