C# how to change data in DataTable?

后端 未结 3 919
无人共我
无人共我 2020-12-29 06:07

I\'v got some problem, I use DataTable to store my data in dataGridView. Data was inputed like this:

dt = new DataTable();
dt.Columns.Add(\"ID\", typeof(int)         


        
3条回答
  •  鱼传尺愫
    2020-12-29 06:35

    You should probably set the property dt.Columns["columnName"].ReadOnly = false; before.

提交回复
热议问题