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
235
Add new field at runtime
posted

Does XamDataGrid support adding a new field into the grid at runtime? Our users would like to add a new field and specify a formula for this field that depends on values in 2 other fields already in the grid.

Does the grid support something of this sort  ?

 

Thanks,

Vikrant

  • 27093
    posted

    Hello Vikrant,

    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.

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

  • 2180
    Suggested Answer
    Offline posted

    Hi Vikrant,

    There is no build in functionality that allows the user to add fields at runtime, however you can implement your own logic in the application that adds UnboundFields to the Fields collection of the grid. For the calculation part you can use the XamDataGrid support for XamCalculationManager which was released as CTP in 11.2. You have to add a XamFormulaEditor in your application which Target is the UnboundField and the user will be able to specify a formula for that field. Hope this helps!

    Thanks,

    Diyan Dimitrov