- private void Form1_Load(object sender, EventArgs e)
- {
- this.c1FlexGrid1.Styles.Normal.WordWrap = true;
- this.c1FlexGrid1.AutoSizeRows();
-
- DataTable dt = new DataTable();
- dt.Columns.Add("ID", Type.GetType("System.Int32"));
- dt.Columns.Add("工作计划", Type.GetType("System.String"));
- DataRow newrow = dt.NewRow();
- newrow["ID"] = 1;
- newrow["工作计划"] = "明日上午去登山,下午去游泳,晚上看电影";
- dt.Rows.Add(newrow);
- this.c1FlexGrid1.DataSource = dt;
-
- }
复制代码 file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\601434416\QQ\WinTemp\RichOle\B(])X)HSKVC2IYBP%MY8F{A.png
file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\601434416\QQ\WinTemp\RichOle\B(])X)HSKVC2IYBP%MY8F{A.png
|