Hi Folks, Merry Xmas!
Was hoping someone could help me out here. I have a DataGridView control in my project and in it, one column that I'd like to check the value of against a group of data to see if the value matches one of the items in that group. If it does, I'd like it to display normally, and if not I'd like to change the text color to red. The reference data group would most likely be a datatable but could also be the values in a combobox, or some other construct if necessary.
I remember doing this a few years back with ComponentOne's DBGrid control in a VB6 project but for the life of me I can't even figure out if it is possible to do it with the DataGridView control. Can anyone give me a herads-up or even better, an example of how to do this?
For backgrould I'm using VB.Net 2008, the grid has the column names pre-defined and uses a datatable created through OLEDB from an Access 2003 DB. If any of that means anything.
Happy holidays folks!
CraigHartz
Was hoping someone could help me out here. I have a DataGridView control in my project and in it, one column that I'd like to check the value of against a group of data to see if the value matches one of the items in that group. If it does, I'd like it to display normally, and if not I'd like to change the text color to red. The reference data group would most likely be a datatable but could also be the values in a combobox, or some other construct if necessary.
I remember doing this a few years back with ComponentOne's DBGrid control in a VB6 project but for the life of me I can't even figure out if it is possible to do it with the DataGridView control. Can anyone give me a herads-up or even better, an example of how to do this?
For backgrould I'm using VB.Net 2008, the grid has the column names pre-defined and uses a datatable created through OLEDB from an Access 2003 DB. If any of that means anything.
Happy holidays folks!
CraigHartz