user2500094
user2500094

Reputation: 1103

Asp.Net - how to re size a grid view control within a master page?

I'm using a grid view which contains 7 text boxes and a total of 8 columns in it. When I design it in a plain web form it's displaying normally. But when I add it to the master page the grid view crosses the master page border. I have tried changing the border width of the grid view control but it's not changing. Can anyone please let me know how to come over this issue? I just want to resize the grid view control.

enter image description here

Upvotes: 0

Views: 1300

Answers (1)

Samiey Mehdi
Samiey Mehdi

Reputation: 9414

You must put GridView into a Scrollable Panel:

<asp:Panel ID="Panel2" runat="server" ScrollBars="Both" Width="100%">

    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>

</asp:Panel>

Upvotes: 1

Related Questions