摘要:
C# 快速入门[英]Aisha Ikram 著 野比 译来源:www.codeproject.com(Quick C#)译注:原文极长(约 1.5 万字),但浅显易懂,讲解生动活泼,请耐心阅读在帖子里阅读做好心理准备,极长在一小时内学会 C#。使用例程,简单却完整的探索 C# 语言的构造和特点。本文... 阅读全文
posted @ 2012-05-29 17:48
风与雨无阻
阅读(442)
评论(0)
推荐(0)
摘要:
/// /// 显示药品类别列表/// /// public void SetCommondCategory(TreeView tv){ //先清除原有的节点 tv.Nodes.Clear(); sb.Remove(0, sb.Length); sb.Append("select categoryN... 阅读全文
posted @ 2012-05-27 10:57
风与雨无阻
阅读(211)
评论(0)
推荐(0)
摘要:
行上移下移 #region上移位置//////选中行上移方法//////privatevoidListViewUpMove(ListView listView){if(listView.SelectedItems.Count==0){return;}listView.BeginUpdate();if... 阅读全文
posted @ 2012-05-27 10:55
风与雨无阻
阅读(1525)
评论(0)
推荐(0)
摘要:
/// /// DataGridView 编辑单元格的控件时 /// private void DgvToxicologicalMaintenance_EditingControlShowing(object sender, DataGridViewEditingControlShowingEv... 阅读全文
posted @ 2012-05-27 10:54
风与雨无阻
阅读(790)
评论(0)
推荐(0)
摘要:
方法一(推荐使用这个方法,因为他可以另存为,哪个更快就要使用者测试了,这里只提供方法): /// /// 收费项目---Excel/// private void BtnExcel_Click(object sender, EventArgs e){ if (DgvFeeInspection.Row... 阅读全文
posted @ 2012-05-27 10:52
风与雨无阻
阅读(268)
评论(0)
推荐(0)
摘要:
怎么将ListView控件中的数据导出到Excel?首先 你需要添加引用Microsoft Excel 11.0 Object Library 添加方法:选择项目->引用->右击“添加引用”->选择COM 找到上面组件—>点击“确定”。 实现代码如下: private void 导出数据_Click... 阅读全文
posted @ 2012-05-27 10:51
风与雨无阻
阅读(376)
评论(0)
推荐(0)
摘要:
一:得到列的索引 int ColumnIndex = this.DgvDiagnosisList.CurrentCell.ColumnIndex;//获取列的索引 二:得到当前选中行并得到该行的某一列的值 int RowIndex = this.DgvDiagnosisList.CurrentRow... 阅读全文
posted @ 2012-05-27 10:50
风与雨无阻
阅读(459)
评论(0)
推荐(0)
摘要:
///首先新建一个DataGridViewHelper类 using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.Drawing; namespa... 阅读全文
posted @ 2012-05-27 10:50
风与雨无阻
阅读(692)
评论(0)
推荐(0)
摘要:
/// /// 选择不同的标记/// /// /// private void comboBox1_TextChanged(object sender, EventArgs e){DataGridViewCell dgvcell = (DataGridViewCell)this.comboBox1.... 阅读全文
posted @ 2012-05-27 10:49
风与雨无阻
阅读(405)
评论(0)
推荐(0)
摘要:
打算要实现的效果是: 由于listview控件本身没有分页的功能,为了达到这么目的, 方法一:我们可以结合其他空间来完成,但是对framework要求的版本也比较高; 方法二:通过sql语句来完成,通过sql语句完成分页。 这里我们采用第二种方法: namespace sepera... 阅读全文
posted @ 2012-05-27 10:47
风与雨无阻
阅读(1824)
评论(1)
推荐(0)
浙公网安备 33010602011771号