WPF datagrid empty row at bottom

后端 未结 5 793
忘掉有多难
忘掉有多难 2020-12-23 15:51

I bind my datagrid using

//fill datagrid
public DataTable GameData
{
    get
    {
        DataSet ds = new DataSet();
        FileStream fs = new FileStream         


        
5条回答
  •  -上瘾入骨i
    2020-12-23 16:09

    Sounds like you probably have CanUserAddRows set to true for the DataGrid. Just add

    CanUserAddRows="false"
    

    to the XAML.

提交回复
热议问题