BrokenRules DataBinding
Old forum URL: forums.lhotka.net/forums/t/455.aspx
jokiz posted on Thursday, June 22, 2006
i can see that RulesCollection has the ToString() to return string representation of the broken rules newline delimited. In my opinion, it would be better to also have a public method which return all string representations of the broken rules (as StringCollection perhaps) for better flexibility in displaying them in UI.
Although I can work around since CSLA already exposes the underlying rules with GetRulesCollection(), and one can databind it's Description with a repeater, i'd rather have it encapsulated (it's where csla is good at). Parsing the newline delimited string to obtain a list/array is somewhat dirty to me...
RockfordLhotka replied on Saturday, June 24, 2006
Good idea. In version 2.1 I am adding a ToArray() method to the BrokenRulesCollection class, so you can easily get a string array with the descriptions using that method.jokiz replied on Sunday, June 25, 2006
RockfordLhotka: Good idea. In version 2.1 I am adding a ToArray() method to the BrokenRulesCollection class, so you can easily get a string array with the descriptions using that method.
cool, thanks!
Copyright (c) Marimer LLC