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
using checkboxes in a dynamic column
posted

Hello team,

hope you are well.

I have an urgent requirement. I am trying to have checkboxes in one of the dynamically generated columns. So I use the following code in the attached sample:

CheckBox check1 = new CheckBox();
check1.IsChecked = true;

employee.SecondName = check1;

Employees.Add(employee);

But when I run the application I get a string value in the xamdatagrid cell instead of the actual checkbox. Please advise how to resolve this. Thank you.

Best regards,

Sherif

XamDataGridDynamic2.zip
Parents
  • 138253
    Offline posted

    Hello Sherif,

     

    Thank you for your post. I have been looking into I and the sample you have attached and I modified it, so now it works as you want. Basically I set the employee’s SecondName property to a Boolean value and set the Field’s EditorType to XamChakEditor. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamDataGridDynamic2Update.zip
Reply Children
No Data