gridview在Web浏览器中不可见? [英] gridview not visible in web browser ?

查看:176
本文介绍了gridview在Web浏览器中不可见?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





字段集内的Gridview如下



Hi,

Gridview inside a fieldset as below

<fieldset id="fieldSet" style="display: block;width:99%;vertical-align: text-top;">
   <legend>Student Report</legend>
   <table border="0" width="100%">
    <tr>
     <td>
     <br />
         <asp:UpdatePanel runat="server" ID="updtPanel">
         <ContentTemplate>
         <div id="scrolldiv">

         <asp:GridView ID="studentReportGrid" runat="server" AutoGenerateColumns="false" HeaderStyle-BackColor="#0080C0"
         HeaderStyle-Width="200" HeaderStyle-ForeColor="White" Width="100%" RowStyle-HorizontalAlign="Left" AllowPaging="true" PageSize="3"
         OnPageIndexChanging="studentReportGrid_PageIndexChanging">
          <Columns>
           <asp:templatefield HeaderText="Date&time" HeaderStyle-HorizontalAlign="Left">
            <itemtemplate>
            </itemtemplate>
           </asp:templatefield>
           <asp:BoundField DataField="STUDENT_NAME" HeaderText="Student name" ReadOnly="True"  HeaderStyle-HorizontalAlign="Left" />
           <asp:BoundField DataField="STUDENT_ID" HeaderText="Id"  HeaderStyle-HorizontalAlign="Left"/>
           <asp:BoundField DataField="VEHICLE_NUMBER" HeaderText="Vehicle_no"  HeaderStyle-HorizontalAlign="Left"/>
           <asp:templatefield HeaderText="Entry_location" HeaderStyle-HorizontalAlign="Left">
            <itemtemplate>
            </itemtemplate>
           </asp:templatefield>
           <asp:templatefield HeaderText="Exit_location" HeaderStyle-HorizontalAlign="Left">
            <itemtemplate>
            </itemtemplate>
          </asp:templatefield>
         </Columns>
        </asp:GridView>
        </div>
        </ContentTemplate>
        <Triggers>
          <asp:AsyncPostBackTrigger ControlID="generateReportbtn" EventName="click" />
          <asp:AsyncPostBackTrigger ControlID="hdnBtn" EventName="click" />
       </Triggers>
       </asp:UpdatePanel>
     </td>
    </tr>
    <tr>
     <td>
     </td>
    </tr>
 </table>
</fieldset>

< br $>


当我在浏览器中看到该页面时,缺少gridview。可能是什么原因?





谢谢..



When i see the page in browser, gridview is missing. what could be the reason?


Thanks..

推荐答案

检查包含网格的div的属性,即

< div id =scrolldiv>



确保你没有使用任何限制它的宽度/高度和/或能见度的CSS。



问候

Pawan
check the properties of your div that contains the grid i.e.,
<div id="scrolldiv">

ensure that you are not using any css on it that restricts it''s width/height and/or visibility.

Regards
Pawan


首先将此标记放入gridview控件并检查是否有数据......



First put this tag in your gridview control and check there is data or not...

<EmptyDataTemplate>no record found</EmptyDataTemplate>





AND

你的DATASOURCE在哪里.. ???

(如果代码中的数据源然后你在之后应用了databind()函数)..

将您的数据源代码也放在您的问题中以获取详细信息





谢谢

Asp.Net/C#.Net帮助 [ ^ ]

Hemant Singh



AND
Where is your DATASOURCE..???
(if datasource in code then you applied databind() function after it or not)..
place your datasource code also in your question for detail


Thank you
Asp.Net/C#.Net Help[^]
Hemant Singh


Possib lities在scrollldiv中(查看CSS代码)。或者数据集不返回任何结果集。



谢谢
Possiblities are in scrolldiv(check out the CSS code).or the dataset does not return any resultset.

Thanks


这篇关于gridview在Web浏览器中不可见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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