Verify ItemEditors input in a datagrid.
Working a lot with ItemEditors in DataGrids.
One of the issues I've been dealing with is adding validation to the item editor text entry. I've been attaching my validations to the item editor objects themselves however the Datagrid object throws out ItemEditEnd events. You have to check the event's DataGridReason to see whether it is a cancel or not and then you have the opportunity to validate the data. If the data is bad then do a event.PreventDefault to interrupt the data acceptance and set the target's errorString to the error message.
More details can be found here.
Feel free to comment on the post but keep it clean and on topic.comments powered by Disqus
Software Development for Linux/Unix since 1995. I've done everything from Perl,C/C++,Java,Flash,php, ruby and currently node.js. Always interested in pushing technology one step further than expected.