wpf/sliverlight EXCEL数据复制粘贴到dateagrid中
来源:互联网 发布:扒皮淘宝优菲猫 编辑:程序博客网 时间:2024/04/28 19:20
在datagrid的keydown时间中处理出具
private void grid_KeyDown(object sender, KeyEventArgs e)
{
string str = System.Windows.Clipboard.GetText();//获取剪切板数据
// 数据载体 data = new 数据载体();
if (string.IsNullOrEmpty(str.Trim()) == false)
{
string[] rows = str.Split('\n');//分行
int colIndex = 0;
int r = 0;
int c = 0;
//循环行
foreach (var item in rows)
{
string[] cols = item.Split('\t');//分列
if (!string.IsNullOrEmpty(item))
{
if (colIndex + c == 0)
{
//data.XXX=colStr
}
else if (colIndex + c == 1)
{
//ata.YYY=colStr
}
}
}
}
// list.Add(data);
//绑定datagrid
- wpf/sliverlight EXCEL数据复制粘贴到dateagrid中
- 【转载】 VB.NET 复制粘贴EXCEL数据到DataGridView
- Extjs中EditorGridPanel粘贴Excel复制的数据
- Delphi excel 复制粘贴到dbgrid
- 把excel中的数据粘贴到PLSQL Developer中
- 学习心得:控件之List复制、导出数据(粘贴、导出到EXCEL)
- vba中excel和word复制粘贴
- 将Excel单元格复制后,通过剪切板然后粘贴到页面上的table表中
- 从WPF中的ListView中导出数据到Excel
- 把excel中的数据粘贴到oracle
- 复制文本到粘贴板中
- c#中复制文件到粘贴板
- Excel文件复制粘贴
- SAP中如何把屏幕数据复制到excel中
- 网页上特定数据的复制 复制到粘贴板?
- 转:如何选择 Excel 中的数据列,然后将数据粘贴到文本文件中?
- C#从Excel复制内容粘贴到DataGridView
- 数据窗口实现与excel双向复制和粘贴
- 最全的厚黑学,教你怎样混社会(人生格言) 作者 李宗吾
- Android开发:实时处理摄像头预览帧视频------浅析PreviewCallback,onPreviewFrame,AsyncTask的综合应用
- Linux试题
- “万能数据库查询分析器” 5.03发布,访问EXCEL将自动为表名前后加上中括弧
- python challenge <六>
- wpf/sliverlight EXCEL数据复制粘贴到dateagrid中
- 选择
- OUC_之校园智能卡管理系统(主题日志)
- spagobi 4.0 中文问题初探
- C 语言日期时间处理
- Halcon10 与 VC++交互,通过picture control显示图像
- 星期计算算法吉姆拉尔森星期推导过程
- [CF 61E]Enermy is weak[线段树求二重逆序数]
- ajax跨域问题