how to handle business layer validation error in presentation layer ?
-
Hi i've use TableAdapter (typed dataSet) in my app, i extent my business layer to validate some information. when data is not valid then throw an exception. now i want to handle this error in presentation layer. for example display error value in red color in datagridview, but i don't know how to do that. can anybody help me to handle it in presentation layer ? thanks
-
Hi i've use TableAdapter (typed dataSet) in my app, i extent my business layer to validate some information. when data is not valid then throw an exception. now i want to handle this error in presentation layer. for example display error value in red color in datagridview, but i don't know how to do that. can anybody help me to handle it in presentation layer ? thanks
What information are you passing with the exception back to the presentation layer? I suppose there is any unique identifier that can help you identify the row having faulty data. Then, using Cells.Style property, you can set the fore color of the cell.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD