0

I am binding my data grid with a list of check boxes (WPF MVVM pattern). In the UI, I am getting a check box list with an extra empty check box row. And every time when I am checking that row and going back to any of the above options, automatically one more row is getting added.

I am attaching my code here.

Home.xaml HomeViewModel.cs

HomeViewModel.cs

3
  • It seems like DataGrid.CanUserAddRows property is set to true, change it to false and check. Commented May 2, 2016 at 12:16
  • 1
    yes..now it is working... :) thank you.. Commented May 2, 2016 at 12:37
  • Please copy-paste the code rather than uploading an image. Commented May 2, 2016 at 12:58

1 Answer 1

0

Do this. It will solve your problem.

<DataGrid Name="UrGrid"
CanUserAddRows="False"
... >
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.