Hey Guys,
I'm using a RadGridView bound via bindingSource to a List of custom objects. I want to be able to alert the user if they have entered invalid data when editing. (fails min/max or other such business rules)
in radGridView_CellFormatting() event I test for invalid data and if invalid, I want to set the Fore and Back color of the cell. (using ConditionalFormattingObject wasn't robust enough as I need to set tool tip with error details)
e.CellElement.ForeColor works no problem, but e.CellElement.BackColor will not set. (I set it to Color.Red, but still shows as white.)
Any ideas? (I'm using the default theme.)
Alternatively, is there any way to set an errorProvider for that cell? Or show an error icon in the cell? (setting image doesn't work because it can only be centered.... not left/right aligned)
OR is there a better way to go about alerting the user they've entered erroneous data? (and draw attention to the cell. )
Any and all help appreciated!!
Thanks.
I'm using a RadGridView bound via bindingSource to a List of custom objects. I want to be able to alert the user if they have entered invalid data when editing. (fails min/max or other such business rules)
in radGridView_CellFormatting() event I test for invalid data and if invalid, I want to set the Fore and Back color of the cell. (using ConditionalFormattingObject wasn't robust enough as I need to set tool tip with error details)
e.CellElement.ForeColor works no problem, but e.CellElement.BackColor will not set. (I set it to Color.Red, but still shows as white.)
Any ideas? (I'm using the default theme.)
Alternatively, is there any way to set an errorProvider for that cell? Or show an error icon in the cell? (setting image doesn't work because it can only be centered.... not left/right aligned)
OR is there a better way to go about alerting the user they've entered erroneous data? (and draw attention to the cell. )
Any and all help appreciated!!
Thanks.