Click here to Skip to main content
16,017,907 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I write gridview by this code I need to resize columns by dragging ,I search google more and more but it doesnt work, what should I do?thanks for your help.
my code:

What I have tried:

<blockquote class="quote"><div class="op">Quote:</div> <asp:GridView ID="grdhesList" class="table table-bordered table-responsive Grd_table" runat="server" AutoGenerateColumns="False" HeaderStyle-CssClass="FixedHeader" style="height:400px; overflow:auto" >
    <Columns>
        <asp:BoundField DataField="hesName"  HeaderText="نام ">
        <HeaderStyle Width="500px" />
        </asp:BoundField>
        <asp:BoundField DataField="hesCode"  HeaderText="کد ">
        <HeaderStyle Width="300px" />
        </asp:BoundField>
        <asp:TemplateField>
        <ItemTemplate>
            <asp:LinkButton ID="lnkSelect" runat="server" OnClientClick="return GetSelectedRow(this)" CssClass="button_of_grid">انتخاب</asp:LinkButton>
        </ItemTemplate>
        </asp:TemplateField>
    </Columns></blockquote>
Posted
Updated 9-Apr-17 1:57am

1 solution

You can use jQuery for it as below -

Column Resizing in GridView[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900