Replies: 1 comment 1 reply
-
What do you mean by "not visible"? Do you mean there is a bug in rendering, where row is not rendered at all? Or is it just out of view, and not materialized yet (not included in the visual tree yet)? If that's a second, it's expected for non-visible rows to not be materialized yet. var treeModelIndex = CalculateRowTreeIndex();
// Get row absolute index.
var rowIndex = MyTreeDataGrid.Rows.ModelIndexToRowIndex(yourRowModel);
// Scroll into row, materializing it.
var materializedContainer = MyTreeDataGrid.RowsPresenter.BringIntoView(rowIndex);
// Focus to start editing
materializedContainer.Focus(); Where
Then |
Beta Was this translation helpful? Give feedback.
-
I added a new row in TreeDataGrid, it is not visible when there are many rows, I want to make this row visible, and at the same time make a cell of this row enter the edit state, how can I do it? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions