简体   繁体   中英

WPF DataGrid Row Selection Issue

I have one text box, DataGrid and save button which is calling WCF service for saving the changed value of the Textbox.Before giving call to wcf service the form (main grid) is disabled and enabled again when wcf call is complete . I used threading to call wcf service. Pattern used is MVVM.

My problem is When the form is enabled after completing the wcf service process the Wpf datagrid lost its row selection (means no row is selected in the DataGrid not even default 0).

Any kind of help is appreciated!!! Thanks :)

尝试不要禁用datagrid,但要这样做:

datagrid.IsHitTestVisible = false.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM