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

< 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>
 ....

</Asp:gridview>

If stll have problem, then post your code in comment...
But it will helps you

Happy Coding  :) :)

Comments

Popular posts from this blog

Add Serial no in crystal report without coding

File operations in C# (.net)

SQL – Generate decimal numbers sequence for particular number range