Grid View Size changes with size of data?
<p>I am working around this to get a solution,</p>

<pre><code>&gt;  &lt;asp:GridView ID="GridView1" runat="server" EnableViewState="False"
&gt; BorderWidth="1"
&gt;                     HorizontalAlign="Left" HeaderStyle-BackColor="#5c7990" CellPadding="4" ForeColor="#333333"
&gt;                     AutoGenerateColumns="false" GridLines="None" DataKeyNames="ID" AutoGenerateDeleteButton="false"
&gt;                     EmptyDataText="No records found" CssClass="GridView123" Width="90%" 
&gt;                     OnRowCreated="GridView1_RowCreated"&gt;
&gt;                     &lt;HeaderStyle CssClass="GridHeader" /&gt;
&gt;                     &lt;FooterStyle CssClass="GridFooter" /&gt;
&gt;                     &lt;RowStyle CssClass="RowStyle" VerticalAlign="Top" Wrap="true" /&gt;
&gt;                     &lt;AlternatingRowStyle CssClass="AlternateRowStyle" VerticalAlign="Top" Wrap="true" /&gt;
&gt;                     &lt;Columns&gt;
&gt;                         &lt;asp:BoundField DataField="ID" HeaderText="ID" ItemStyle-Width="20%"&gt;
&gt;                             &lt;ItemStyle Width="20%"&gt;&lt;/ItemStyle&gt;
&gt;                         &lt;/asp:BoundField&gt;                        
&gt;                         &lt;asp:TemplateField HeaderText="Name" ItemStyle-Width="100%" ItemStyle-Wrap="true"&gt;
&gt;                             &lt;ItemTemplate&gt;
&gt;                                 &lt;span id="PName&lt;%# Eval("ID") %&gt;"&gt;
&gt;                                     &lt;%# Eval("Name") %&gt;&lt;/span&gt;
&gt;                             &lt;/ItemTemplate&gt;
&gt;                             &lt;ItemStyle Wrap="True" Width="100%"&gt;&lt;/ItemStyle&gt;
&gt;                         &lt;/asp:TemplateField&gt;
&gt; 
&gt; &lt;/columns&gt; 
&lt;asp:GridView&gt;
</code></pre>

<p>This is my grid view. my problem is the gridview width is changing with diffent data. when the columns have huge data it is expanding and when columns are filled with small data it is shrinking.</p>

<p>I have applied wrapping thing to columns too</p>

<p>I want to have a grid view which will be consistently displayed in unique size what ever the data is filled.</p>

<p>Thanks for all your help...</p>
