question

BitSmithy-4663 avatar image
0 Votes"
BitSmithy-4663 asked NicoZhu-MSFT commented

UWP DataGrid set column as "in edit"

I have an UWP Data Grid with some columns.
DataGrid.ItemsSource is feed with observableCollection

Now I add a new row to observableCollection. New row appers on datagrid.

Now I want to set second column (not first) of my UWP DataGrid as edited with cursor inside it, so the user could simply start type in this field.

The type of column is DataGridTextColumn - so there should be not e problem.


How to do such case.

windows-uwp
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What's your problem with DataGridTextColumn ? Do you means that make notice to tell user, the column is editing ?

0 Votes 0 ·

If I add a new row to datagrid it isnt in edit mode. I want to force a choosen cel to be in edit mode. User could simply start editing the cell or accept new data.

0 Votes 0 ·

DataGridTextColumn only allow double click into editing model, it's by default. we suggest you use CellTemplate with textbox to create custom DataGrid Column to meet this scenario.

0 Votes 0 ·
Show more comments

0 Answers