Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
985
Cell Value XamDataGrid
posted

Hi there,

 

i have a xamdatagrid with a xamcomboeditor to edit cells.

 now i want in the editmodeended-event of the grid that the value goes right into the database. for that i need to know the value of the cell.

 

the Problem:

 if i use the Cell.ConvertedValue in the event i just get the type of my object, that i bound to my comboitemsprovider, and not the value in the cell. How can i read the string inside the cell?

 

regards

Cloud 

 

  • 138253
    Verified Answer
    Offline posted

    Hello Cloud,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello Cloud,

     

    Thank you for your post. I have been looking into it and I can suggest you use the XamDataGrid’s EditModeEnding event. In its handler you can use this:

    string fieldName = e.Cell.Field.Name;
    

    To determine from which is the Field of the Cell that fires the event and by using this you can get the Cell’s Value:

    string cellValue = e.Cell.Value.ToString();
    

    Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.