How do I remove the empty row from the bottom of a DataGridView control?

后端 未结 2 1334
野的像风
野的像风 2020-12-15 02:31

When I fill a DataGridView with data, there is always an empty row at the bottom. How do I disable this?

2条回答
  •  自闭症患者
    2020-12-15 02:59

    If you are having trouble with this in WPF add:

    CanUserAddRows="False"
    

    To the properties of the desired datagrid in XAML.

提交回复
热议问题