开发者

How to Remove Default Row In Wpf data Grid

开发者 https://www.devze.com 2023-01-17 06:48 出处:网络
I am using a WPF Data Grid. Whenever it is loaded there is a blank default row. How can I disable the default row 开发者_Go百科from appearing like you can in the Windows Forms grid.This is the row for

I am using a WPF Data Grid. Whenever it is loaded there is a blank default row. How can I disable the default row 开发者_Go百科from appearing like you can in the Windows Forms grid.


This is the row for new entries. If you don't want let the user create new entries or if you handle this from code, e.g. with a add-button, disable the CanUserAddRows-option.

<DataGrid  CanUserAddRows="False" />
0

精彩评论

暂无评论...
验证码 换一张
取 消