Click here to Skip to main content
11,414,561 members (68,265 online)
Rate this: bad
good
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 2:46am

1 solution

Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,130
1 OriginalGriff 7,477
2 Maciej Los 3,710
3 Abhinav S 3,298
4 Peter Leow 3,084


Advertise | Privacy | Mobile
Web04 | 2.8.150427.4 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2015
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