We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to color a specific cell in DataGrid without coloring entire coloring

Hi, Given a cell's row and column, I need to create a function COLOR_CELL that will alter the foreground and background colors of only the selected cell. The function could be invoked any time a push button is clicked and not necessarily during the first grid load. The function should have the following parameters: COLOR_CELL(Row as integer, Col as Integer, ForegroundColor as color, BackgroundColor as color) I have looked at some examples in this site and I honstly could not understand them well! Please specify your suggestion in VB.NET not in C#. Thanks. Ekareem

Live Chat Icon For mobile
Up arrow icon