Home > Net >  Dev gridcontrol add one or more lines blank
Dev gridcontrol add one or more lines blank

Time:12-18

Under the premise of no data source, is an empty table,
Click on the button to add a line, or add N rows,
 
DataTable dt=new DataTable();
DataRow dr=dt.NewRow();
dt.Rows.Add(dr);
Dt. AcceptChanges ();
GridControl1. The DataSource=dt;

So can I add one line but lose data switch cell is gone

CodePudding user response:

A great god to see ah
  •  Tags:  
  • C#
  • Related