抱歉,我看错了,确实是对中文无法支持自适应列宽调整,这个目前没有什么好办法
只能是手动来设置列宽
- C1GridView1.DataSource = data;
- C1GridView1.AutogenerateColumns = false;
- C1GridView1.Columns.Add(new C1.Web.Wijmo.Controls.C1GridView.C1BoundField() { DataField= "ID11111111111",Width= new Unit(500) });
- C1GridView1.Columns.Add(new C1.Web.Wijmo.Controls.C1GridView.C1BoundField() { DataField = "Data", Width = new Unit(200) });
- C1GridView1.DataBind();
复制代码 |