WPF datagrid empty row at bottom

后端 未结 5 802
忘掉有多难
忘掉有多难 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条回答
  •  佛祖请我去吃肉
    2020-12-23 16:17

    If your backing collection that implements IEditableCollectionView returns true from its CanAddNew method, the DataGrid will assume that is what you want to do.

    There's a good overview here:Overview of the editing features in the WPF DataGrid

提交回复
热议问题