摘要:
//更改属性 this.listView1.GridLines = true; //显示表格线 this.listView1.View = View.Details;//显示表格细节 this.listView1.LabelEdit = true; //是否可编辑,ListView只可编辑第一列。 this.listView1.Scrollable = true;//有滚动条 this.listView1.HeaderStyle = ColumnHeaderSt... 阅读全文
摘要:
xaml:<Window x:Class="AgileToDo.UMessageBox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="UMessageBox" Height="130" Width="280" WindowStyle="None&quo 阅读全文
摘要:
c#读取excel的方法有不少,这里重点讲直接将excel文件读取到dataset中。在实践过程中会有不少问题,特意摘抄在此:1.基本的代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> private DataSet importExcelToDataSet(string FilePath) { string strConn; strConn = "Provider=Microsoft.... 阅读全文