Hello All;
I'm just beginning with the grid and I'm running across several events and techniques to perform data input validation. No doubt people have UI behavior specifications to adhere to, which will dictate how validation is coded, so maybe people could mention that in their responses. (Assuming people have the inclination to respond to this question). I ask because I'm looking at an application someone else wrote that uses about every possibility imaginable, which has resulted in some wildly convoluted code full of band aids to deal with the chaos. Because I'm just learning this stuff, I'm leaning to a re-write but would like some learned advice before I begin.
There's the BeforeCellUpdate and BeforeCellDeactivate pair, as seen at http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=1747 (I think I like this one)
or maybe BeforeRowUpdate and BeforeRowDeactivate
Or the BeforeExitEditMode, or _Error or do you like to go to the underlying ADO Datatable object and set up you data event handlers, like
new DataColumnChangeEventHandler
new DataRowChangeEventHandler
Thanks for any thoughts,
Bill
Hello Bill,
There is a sample in our Samples Browser which might help you to decide how to make the validation for the WinGrid. For that matter you would have to mark 'Samples' in the installer in order to install this browser if you have not done so.
You could locate the mentioned sample under Programs->Infragistics->NetAdvantage (your current infragistics version)->Windows Forms->Samples->Samples (Local).
When it loads, please navigate to the 'UX Enhancers' tab and then 'Launch' the 'WinValidator'. Or you could type in the 'Search:' "WinValidator".
Please do not hesitate to contact us if you need any additional assistance.