title: Adding Colspan in PagerStyle of DataGrid
body: <p>How to add colspan in the pagerstyle of the data grid.
  Because after binding userdetails (having two columns-ID and Name) are showing perfect 
  but the pager is srinked to the 1st column itself not expended to the page width.</p>
  
  <p>Tried with setting width 100% or 100px but dint work.
  When i tried setting  colspan(it was showing 1) as 2 from IE's developer tool, its rendered perfectly.</p>
  
  <p>PS: it was working fine in .net 1.1 but project is now converted into 4.0</p>
  
  <p>Sample code:</p>
  
  <pre><code>&lt;div id="divMS" class="bodytext8pt" style="overflow-Y: auto; overflow-X: hidden; width: expression(document.body.clientWidth); height: expression((document.getElementById('divPageHeader') ? document.body.clientHeight-parseInt(document.getElementById('divPageHeader').style.height)-45 : document.body.clientHeight-45)); border: black solid 1px"&gt;
      &lt;asp:datagrid id="dgResults" CellPadding="3" AllowSorting="True" AllowPaging="True" Width="100%" Height="1"
          runat="server" AutoGenerateColumns="False"&gt;
          &lt;AlternatingItemStyle CssClass="GridAltItem" Height="20"&gt;&lt;/AlternatingItemStyle&gt;
          &lt;ItemStyle CssClass="GridItem" Height="20"&gt;&lt;/ItemStyle&gt;
          &lt;HeaderStyle ForeColor="White" CssClass="GridHeader DataGridFixedHeader" Height="20"&gt;&lt;/HeaderStyle&gt;
          &lt;Columns&gt;
              &lt;asp:TemplateColumn&gt;
                  &lt;HeaderTemplate&gt;
                      &lt;asp:CheckBox id="chkMSAll" OnCheckedChanged="chk_CheckedChanged" AutoPostBack="True" runat="server" Width="20"&gt;&lt;/asp:CheckBox&gt;
                  &lt;/HeaderTemplate&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:CheckBox id="chkMSItem" runat="server" Width="20"&gt;&lt;/asp:CheckBox&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateColumn&gt;
          &lt;/Columns&gt;
          &lt;PagerStyle CssClass="GridItem hoverLinkHover" Mode="NumericPages" Height="20" wrap="false"&gt;&lt;/PagerStyle&gt;
      &lt;/asp:datagrid&gt;
  &lt;/div&gt;
  </code></pre>