如果在gridview中没有值,我们可以在gridview中创建行吗? [英] can we create the row in a gridview if thier is no value in the gridview.

查看:61
本文介绍了如果在gridview中没有值,我们可以在gridview中创建行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法理解的朋友.所以请给我建议或给我其他选择做任务.

任务是..
我正在为我的客户创建装箱单,其中我正在使用gridview显示客户装箱单的详细信息.但是问题是,如果条目大约为20,则gridview会占用Web表单的整个空间,但是如果条目大约为5,则gridview的大小会很小,并且不会覆盖Web表单的整个空间. > 我正在使用gridview的垂直线来显示表格的gridview.
但问题是,如果我有5个条目,则垂直线仅针对5个条目.
是解决线条可以画在整页上的问题的任何方法,
还是它们的gridview的任何属性以创建行或绘制垂直线(如果它们不存在任何条目).

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 .

推荐答案

问题,所以我只是将Grid视图放在
< asp:Panel>并设置固定的高度和宽度,以便输入的内容更多时
以及Grid视图的高度会增加,并且其高度要比< asp:panel>大得多.而不是滚动视图中显示的那样,这样我就解决了我的问题,我建议您做和以前一样的事情.
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.


这篇关于如果在gridview中没有值,我们可以在gridview中创建行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆