............
DataGridTextBoxColumn TextCol = new DataGridTextBoxColumn();
TextCol.MappingName =...;
TextCol.HeaderText = ...;
TextCol.Width = 100;
............
DataGridTextBoxColumn TextCol = new DataGridTextBoxColumn();
TextCol.MappingName =...;
TextCol.HeaderText = ...;
TextCol.Width = 100;
............
Web的特点就是界面难控制。不像WinForm那么好用。
http://xml.sz.luohuedu.net/xml/ShowList.asp?id=1
http://xml.sz.luohuedu.net/xml/ShowList.asp?id=1
http://xml.sz.luohuedu.net/xml/ShowList.asp?id=1
******************问题还是没有解决,请个为大师指点****************
********拜托了!!!**********
csharpsharper() ----他(她)解决的,不知是男是女,知道的话,一定让签个名。。this.DataGrid1.DataSource=Dataset;
this.DataGrid1.Width=Unit.Pixel(Dataset.Tables[0].Columns.Count*102);
this.DataGrid1.DataBind();就是这个方法!!
Column.width
one by one!