Home Forums WinForms controls Xceed Grid for WinForms CellEditorManager.Validating

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #16468 |

    When I am in CellEditorManager.Validating event I would dearly like to know the value the editor is going to post to the cell. In my case it is Xceed.Editors.WinDatePicker.   Can I some how know the value he would post to the cell?

     

    best regards

     

    Einar

    Imported from legacy forums. Posted by Einar (had 737 views)

    User (Old forums)
    Member
    Post count: 23064

    Use the EventArgs to get the control, cast it, and retrieve the value.

    e.g. :

    void CellEditorManager_Validating( object sender, ValidatingEditorEventArgs e )

    {

        DateTime value = ( ( WinDatePicker )e.Control ).Value;

    }

    Imported from legacy forums. Posted by André (had 289 views)

    User (Old forums)
    Member
    Post count: 23064

    I feel so stubit now [:$] When I was testing it I just typed 10 and asumed the box would put in 10.10.2008 (some kind of autocompleat) [:$] 

     

    thanx

    Imported from legacy forums. Posted by Einar (had 254 views)

    User (Old forums)
    Member
    Post count: 23064

    Don’t worry about that.  Nobody’s perfect! [;)]

    Imported from legacy forums. Posted by André (had 1244 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.