动态设置 GridView 列宽

时间:2023-03-10 08:39:32
动态设置 GridView 列宽
 /// <summary>
        /// 设置简单评语列的宽度
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
        {
            e.Row.Cells[11].Width = 200;

        }