麦田

不积跬步无以至千里.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年12月28日

摘要: 首先在程序中添加一个ContexMenuStrip1控件,给该控件添加删除项,把 datagridview的ContexMenuStrip属性项绑定为你所添加的ContexMenuStrip1控件,然后就是你自己编写程序来操作删除具体的东西了这是两个属性,点击一行是将其selectionMode属性设为FullRowSelect可以实现选定一行!!而出现鼠标右键是使用的contentmenustrip控件,将datagridview的contentmenustrip属性值绑定到该控件上即可!至于删除菜单可以在contentmenustrip控件中添加!! 阅读全文
posted @ 2012-12-28 16:57 一些记录 阅读(2940) 评论(0) 推荐(0)

摘要: private void DatagridviewBind() { this.dataGridViewTemplate.DataBindings.Clear(); this.dataGridViewTemplate.DataSource = ap01TemplateBLL.GetAllList(); this.dataGridViewTemplate.DataMember = "ds"; }通过dataset先清空,再绑定或dataset通过update更新数据 阅读全文
posted @ 2012-12-28 16:44 一些记录 阅读(5194) 评论(0) 推荐(0)

摘要: private void dataGridViewTemplate_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex != 0) { string buttonText = this.dataGridViewTemplate.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); if (butt... 阅读全文
posted @ 2012-12-28 16:30 一些记录 阅读(1540) 评论(2) 推荐(0)

摘要: 播放器代码如下:HTML播放器样式1代码:<P align=center> <TABLE borderColor=#bc8f8f cellSpacing=1 width=315 border=1> <TBODY> <TR> <TD><EMBED style="FILTER: invert(); WIDTH: 315px; HEIGHT: 28px" src=音乐地址type=audio/mpeg autostart="true"></EMBED></TD>&l 阅读全文
posted @ 2012-12-28 13:39 一些记录 阅读(14908) 评论(0) 推荐(0)