DataGrid fixes and updates #2545
Merged
Conversation
- Moving DataGridComboBoxColumn exceptions into DataGridError.cs. - Unhooking LoadingRow/CellEditEnded handlers when DataGridComboBoxColumn is removed from columns collection. - Fixing SampleApp's sorting logic to allow reversing sort direction.
...soft.Toolkit.Uwp.UI.Controls.DataGrid/DataGrid/DataGridComboBoxColumn.cs
Show resolved
Hide resolved
…x and CheckBox columns.
…indowsCommunityToolkit into harinikmsft/datagrid
| ? ItemsSource?.Cast<object>().FirstOrDefault(x => x.GetType().GetProperty(Binding.Path.Path).GetValue(x).Equals(value)) | ||
| : ItemsSource?.Cast<object>().FirstOrDefault(x => x.Equals(value)); | ||
| var selection = !string.IsNullOrEmpty(this.DisplayMemberPath) | ||
| ? this.ItemsSource?.Cast<object>().FirstOrDefault(x => x.GetType().GetProperty(this.Binding.Path.Path).GetValue(x).Equals(value)) |
nmetulev
Oct 16, 2018
Contributor
@MSRegisB, could you update the PR to remove the this.?
@MSRegisB, could you update the PR to remove the this.?
|
Just remove the "this." and I'll approve it. |
|
Dropped the "this." in the combobox column. There are about 2950 instances left in the rest of the DataGrid code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Issue:
#2478
#2472
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Other information