Skip to content

Added new kb article updating-external-ui-after-commit-edit-net-maui-datagrid #1217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Aug 5, 2025

No description provided.

@github-actions github-actions bot requested a review from a team as a code owner August 5, 2025 06:55
I want to display calculated values from two edited DataGrid cells in an external UI element, such as a `Label`. I use the `CommitEditCommand` in the UI for .NET MAUI DataGrid to run the calculation after editing the cells. However, the `CommitEditCommand` does not seem to have the updated cell values.

This knowledge base article also answers the following questions:
- How to use `CommitEditCommand` to update external UI in .NET MAUI DataGrid?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- How to use `CommitEditCommand` to update external UI in .NET MAUI DataGrid?
- How to use `CommitEditCommand` to update an external UI component in .NET MAUI DataGrid?

var context = (EditContext)parameter;
this.Owner.CommandService.ExecuteDefaultCommand(DataGridCommandId.CommitEdit, context);

// Update external UI element after committing the values
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Update external UI element after committing the values
// Update external UI element after committing the values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant