當DataGrid屬於單元格選中時出現紅框,是因為WPF中DataGrid擁有默認的驗證屬性,如需關閉,請在DataGrid中加入以下屬性:
Validation.ErrorTemplate="{x:Null}"
搬運轉發請鏈接注明出處。
當DataGrid屬於單元格選中時出現紅框,是因為WPF中DataGrid擁有默認的驗證屬性,如需關閉,請在DataGrid中加入以下屬性:
Validation.ErrorTemplate="{x:Null}"
搬運轉發請鏈接注明出處。
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。