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