Warning Severity in GridEX controlWarning Severity in GridEX control
Old forum URL: forums.lhotka.net/forums/t/1889.aspx
shawndewet posted on Saturday, December 02, 2006
My validation rules always show up in the grid when my object is bound to a Janus GridEX control. However, I am now trying to implement validation where I set the severity property of the RuleArgs to Warning. These however don't show up in the GridEX control like other broken rules. Does anybody have advice on how I can get the grid to do this?mr_lasseter replied on Saturday, December 02, 2006
The Error Provider does not support warning or information.
There was a thread about creating a new Error Provider that supported
Warnings and Information, but I don't think anything has been started
on it.
xal replied on Saturday, December 02, 2006
You could try the error treeview I implemented. It's available in the
codeplex site.
It's not very obvious where you can download it from, since the "release modes" in codeplex suck (at least that's what I think).
Here's a direct link to the download:
http://www.codeplex.com/Project/FileDownload.aspx?ProjectName=CSLAcontrib&DownloadId=2525
It won't do what you're trying to do (which is show the correct icon in the grid), but it allows you to see the errors in a tree including warnings and information. You can point the user to the correct row when a user double clicks the tree node by using an event. Check out the sample app to see how it works.
Andrés
shawndewet replied on Sunday, December 03, 2006
Thanx Andres,
I'll check it out. What I've done in the meantime is to build a check into my validation method to see if the object is dirty. The validation now only fails if the object is not dirty. That way the warning shows up as an error in the grid (my grid is only displaying Old, Non-Dirty objects), but while an object is dirty, the validation "succeeds", and allows a save without the "Object is not valid..." error.
Copyright (c) Marimer LLC