c# - How to make DataGridColumn ReadOnly but with CaretVisible? -


is there way have datagrid column in readonly mode caret visible? similar textbox when using isreadonlycaretvisible property? if set isreadonly property column gets disabled , not possible click on cell.

<datagrid itemssource="{binding customers}" autogeneratecolumns="false">          <datagrid.columns>              <datagridtextcolumn binding="{binding name}"></datagridtextcolumn>              <datagridtextcolumn binding="{binding income}" isreadonly="true"></datagridtextcolumn>          </datagrid.columns> </datagrid> 

you can create datagridtemplatecolumn textbox. refer below code.

<datagridtemplatecolumn header="name">                 <datagridtemplatecolumn.celltemplate>                     <datatemplate>                         <textbox text="{binding name}" isreadonly="true" isreadonlycaretvisible="true"/>                     </datatemplate>                 </datagridtemplatecolumn.celltemplate>                                </datagridtemplatecolumn> 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -