|
[sorry for my bad English] Hi, I'm currently surveying GridView's event. I found that when GridView is requesting value for its cell value, it uses a event mechanism (CellValueNeeded). Here's my doubts: Since GridView uses a event mechanism, which means there could be many subscriber hook their method to this event. Is there any point in this that there are multiple sources of cell value? I've thought of a reason for this is that in case any of the value source is unable to provide cell value, other source can still provide cell value (if they could). But wait, I think we shouldn't rely on the execution sequence of event handlers (nor can we control the execution sequence of them). Then why would we risk the unexpected result of this event mechanism? I mean, if the GridView just public a SetCellValueDelegate method, of which accepts a handler as parameter per GridView instance basis, then there shouldn't be a problem of unexpected cell value due to multiple value sources. Any ideas? |