Click here to Skip to main content
12,953,230 members (61,565 online)
Rate this:
Please Sign up or sign in to vote.
friends i cant understand what can i do. so plz suggest me or give me any alternative do the task.

the task is ..
I am creating the packing list for my client, in which i am using the gridview to show the details of the client packing list. but the problem is if the entry is about 20 then the gridview take the whole space of web form, but if the entries is about 5 then the size of gridview is small and it is not covered the whole space of web form.
i am using the vertical line of gridview to show the gridview like a table.
but the problem is if i have 5 entry then the vertical line are made only for the 5 entry.
is their any method to solve the problem that the line can draw on whole page,
or is their any property of gridview to create the row or draw the vertical lines if their is no entry present .
Posted 12-Nov-12 1:46am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

So much time before I was facing same type of problem, So I just put my Grid view in
<asp:Panel> and set fixed height and width so if the entries are going to much
larger as well as the height of Grid view increase and when its height is going to much larger than <asp:panel> than it shown in scroll view, In this way i had solved my problem, And I suggest you to do same thing as I had done.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,429
CHill60 3,490
Maciej Los 3,103
Jochen Arndt 1,975
ppolymorphe 1,920

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100