I am binding a table to a gridview in asp.net as such
grdIssues.DataSource = mdtIssues; grdIssues.DataBind();
The problem is I cannot the
I was able to change the width of a certain Gridview column (bound to a Datatable) with the RowDataBound event:
Gridview
Datatable
RowDataBound
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { e.Row.Cells[0].Attributes["width"] = "200px"; }