System.Web.UI.WebControls.Unit转换
如设置datagrid宽度
Datagrid1.Width = System.Web.UI.WebControls.Unit.Percentage(93);
设置为93%宽度。其他等等。