Hi,
Please can you assist with the following? I've got a WinGrid that's bound to a DataTable with cols A and B. The cells of both columns are being updated regularly. My goal is, for each row, to format the background of col A based on the changing values in col B. It's an urgent requirement, so early assistance would be much appreciated.
Many thanks,
James
James,
In the AfterCellUpdate event of the grid you can test the value of a cell and then set the appearance of another cell depending on the result of that test. I have attached a sample which you can look at and I think you will see how this can be done. You can also do this kind of thing in the InitializeRow event. In my sample you will see similar code there that has been commented out which will do the same thing. I hope this helps. Let me know if you have further questions.
Sorry, I forgot to mention above that the required logic needs to be established at runtime, as opposed to setting it up in the designer.