How to set equal width of columns in Gridview
Suppose you are binding data field with some templates like checkbox,radiobutton,textbox etc...
Then it will works using
E'g :
...// Some your grridview code
If stll have problem, then post your code in comment...
But it will helps you
Happy Coding :) :)
Then it will works using
< Headerstyle width="6%">
E'g :
...// Some your grridview code
<asp:gridview>
....// Some data fields ..
..
<asp:TemplateField Visible="true" HeaderText="Disagree">
<HeaderStyle Width="2%"/>
<ItemTemplate>
<asp:RadioButton ID="rdbtn3" runat="server" GroupName="rdGroup" OnLoad="RadioButtonGroup_load" />
</ItemTemplate>
</asp:TemplateField>
<HeaderStyle Width="2%"/>
<ItemTemplate>
<asp:RadioButton ID="rdbtn3" runat="server" GroupName="rdGroup" OnLoad="RadioButtonGroup_load" />
</ItemTemplate>
</asp:TemplateField>
....
</Asp:gridview>
If stll have problem, then post your code in comment...
But it will helps you
Happy Coding :) :)
Comments
Post a Comment