Click here to Skip to main content
11,795,848 members (75,964 online)
Rate this: bad
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
0 Maciej Los 350
1 Sergey Alexandrovich Kryukov 326
2 KrunalRohit 239
3 Andy Lanng 236
4 OriginalGriff 230
0 OriginalGriff 1,852
1 Maciej Los 1,465
2 KrunalRohit 1,300
3 CPallini 840
4 Richard MacCutchan 828

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | 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