扩展ASP.NET 2.0内置GridView控件之一第三页

来源:互联网 发布:java 知乎 编辑:程序博客网 时间:2024/06/05 18:09

扩展ASP.NET 2.0内置GridView控件之一

日期:2007年9月16日 作者: 查看:[大字体 中字体 小字体]

  • 添加到QQ书签收藏 添加到雅虎收藏 添加到百度收藏 添加到Google书签 添加到Yahoo书签 添加到新浪ViVi 添加到搜狐网摘 添加到365Key网摘 添加到天极网摘 添加到diglog 添加到和讯网摘 添加到POCO网摘 添加到YouNote网摘 添加到博拉网 添加到天下图摘 Del.icio.us digg reddit spurl BlinkList blogmarks



  • <script type="text/javascript"><!--google_ad_client = "pub-0692289505803928";google_ad_width = 300;google_ad_height = 250;google_ad_format = "300x250_as";google_ad_type = "text_image";google_ad_channel = "6926205886";google_color_border = "FFFFFF";google_color_bg = "FFFFFF";google_color_link = "000060";google_color_text = "000000";google_color_url = "008000";//--></script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script> <iframe name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-0692289505803928&amp;dt=1206919607750&amp;lmt=1199903354&amp;format=300x250_as&amp;output=html&amp;correlator=1206919607750&amp;channel=6926205886&amp;url=http%3A%2F%2Fwww.hackhome.com%2FInfoView%2FArticle_180228_3.html&amp;color_bg=FFFFFF&amp;color_text=000000&amp;color_link=000060&amp;color_url=008000&amp;color_border=FFFFFF&amp;ad_type=text_image&amp;ref=http%3A%2F%2Fwww.hackhome.com%2FInfoView%2FArticle_180228_2.html&amp;frm=0&amp;cc=100&amp;ga_vid=311617188.1206919608&amp;ga_sid=1206919608&amp;ga_hid=519643682&amp;flash=9.0.47.0&amp;u_h=768&amp;u_w=1024&amp;u_ah=738&amp;u_aw=1024&amp;u_cd=32&amp;u_tz=480&amp;u_his=2&amp;u_java=true" frameborder="0" width="300" scrolling="no" height="250" allowtransparency="allowtransparency"></iframe>
      相关的属性如下:

      ·GridView控件是具有上下文菜单的,这里的ID设置的就是在ASPX页面上的GridView控件ID

      ·RightClickedRow:该属性设置上下文菜单。

      下图显示了运行结果。


      当您在行上单击鼠标右键时弹出Context Menu菜单。这里显示了三个选项:

      ·Add a new Row:当选择该选项后,将会在记录里出现新建行。

      ·Delete Row:允许你删除当前右击的行

      ·Edit Row:运行您设置当前行的模式 为编辑模式

     

(出处:网侠)

  • 上一页 [1] [2] [3] 
  •