Unable to set GridView row widths on RowDataBound
<p>My current code to attempt to set widths for the rows on a gridview is:</p>

<pre><code>protected void RowDataBound(Object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.Header)
            {
                foreach (DataControlFieldHeaderCell dcfhc in e.Row.Cells)
                {
                    dcfhc.Width = 100;
                }
            }
            else
            {
                foreach (DataControlFieldCell dcfc in e.Row.Cells)
                {
                    dcfc.Width = 100;
                }
            }
        }
</code></pre>

<p>But that just keep all of the widths default! What am I doing wrong?</p>

<p>EDIT: I have already tried thise code as well!</p>

<pre><code>PoolToDBHeaders.DataSource = new DataView(headerTable);
        PoolToDBHeaders.DataBind();
        foreach (DataControlField dcf in PoolToDBHeaders.Columns)
        {
            dcf.ItemStyle.Width = 100;
        }
        PoolToDBHeaders.DataBind();
</code></pre>
