Click here to Skip to main content
11,717,620 members (79,942 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 Sergey Alexandrovich Kryukov 809
1 OriginalGriff 215
2 F-ES Sitecore 210
3 Maciej Los 140
4 Jochen Arndt 120
0 Sergey Alexandrovich Kryukov 1,494
1 OriginalGriff 535
2 Maciej Los 529
3 Richard MacCutchan 440
4 CHill60 415

Advertise | Privacy | Mobile
Web04 | 2.8.150901.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