在gridview asp.net中的日历扩展器 [英] calender extender in gridview asp.net

查看:78
本文介绍了在gridview asp.net中的日历扩展器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在我的网站中的gridview中使用压延机,它基本上只显示mo,tu,we,thu,而不是每周显示整整7天,在这方面,任何人都可以帮助我,在其他所有地方都可以期待vew压延机工作正常.

Hi i am using calender extender inside gridview in my website, which basically shows only mo,tu,we,thu instead of showing whole 7 days a week, can any one help me in this, in all other place expect grid vew the calender extender is working fine.

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<pre lang="xml"><td align="center" style="border: solid 1px #ddd">
                           <asp:Label runat="server" ID="LabelBoxShiftDate" Text=''<%# Bind("DateReported") %>'' Visible=''<%# Eval("DateReported") != null %>'' />
                           <asp:TextBox runat="server" ID="TextBoxShiftDate" Text=''<%# Bind("DateReported") %>'' Visible=''<%# Eval("DateReported") == null %>'' />
                           <cc1:CalendarExtender ID="CalendarExtender1" runat="server"
                                   TargetControlID="TextBoxShiftDate">
                               </cc1:CalendarExtender>
                           <asp:CompareValidator runat="server" ID="CompareValidatorDate" ControlToValidate="TextBoxShiftDate" Operator="DataTypeCheck" Type="Date" ErrorMessage="Please enter a valid date" />
                       </td>



非常感谢



Many Thanks

推荐答案

在TD中添加填充高度属性.
In your TD add Padding and height attribute.
style="border: solid 1px #ddd; padding: 0px; height: auto;"


如果对您有帮助,请标记为答案/解决方案.
快乐编码;)


Mark as answer/Solution if its helpful to you.
Happy Coding ;)


检查列的宽度,是否被截断了?
Check the column width, is it being cut off?


这篇关于在gridview asp.net中的日历扩展器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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