ADAdministrator Syncfusion Team April 14, 2005 02:14 PM
Try getting the CurrentRecordProperty with Table.CurrentRecordManager.Properties[fieldName].
Then you can set CurrentRecordProperty.Exception on that field. It should show up then in red with a error marker.
>how do i perform the above when a validating process failed in TableControlCurrentCellValidating event?
ADAdministrator Syncfusion Team April 16, 2005 05:30 AM
it worked. thanks.
EWEric WeberSeptember 19, 2006 06:38 PM
Please see the attached sample app. I''m trying to set the (!) icon in the Shares column''s current cell after a user edits the cell, but I can''t get the error icon to appear!
If, however, I set the error to appear in another column (the Text column) when the user edits the Shares data, then the error does appear in the other column. (and then it only appears in the Shares cell when you click back into the shares cell)
Try commenting/uncommenting the following line...
e.TableControl.Table.CurrentRecordManager.Properties["Text"].Exception = new Exception("error");
ADAdministrator Syncfusion Team September 20, 2006 08:18 AM
Sorry for the inconvenience caused.
We are looking into this issue and get back to you very soon.
Thanks for your patience.
EWEric WeberSeptember 20, 2006 11:42 AM
After thinking about it some, it seems like the error icon won''t be displayed until the cell is not it "edit mode". That is why the Text column''s error icon shows up (because it is not being edited). Then when you click in the Text column cell, the Shares column error icon shows up because now it is not being edited.
Here''s what I''m trying to do...
1. user edits cell 2. user leaves cell 3. display error icon in cell (under certain conditions), but allow user to move on to other cells. 4. Don''t display a message box error if cell doesn''t validate (only show error icon).
EWEric WeberSeptember 20, 2006 01:26 PM
Don''t spend alot of time trying to figure out what''s going on. I coded up a work around which suits my needs perfectly (see attached). One of the things I liked about the exception icon, is that it appears right justified, and the text moves to the left. Any tips on how to achieve that? When running my sample app, you''ll need to change the icon path.