Tuesday, March 18, 2008

How To Set The Column Width Of a GridView




You don't see any "width" property in the columns collection,you can set the width of GridView column in code behind. protected void Page_Load(object sender, EventArgs e) { GridView1.Columns[0].ItemStyle.Width = 500; }

No comments:

Post a Comment