C#实现EXCEL数据到TXT文档的转换

2019-05-20 13:45:31丽君

            this.btnSelect = new System.Windows.Forms.Button(); 
            this.btnChange = new System.Windows.Forms.Button(); 
            ((System.ComponentModel.ISupportInitialize)(this.dgvShow)).BeginInit(); 
            this.SuspendLayout(); 
            //  
            // dgvShow 
            //  
            this.dgvShow.AllowUserToAddRows = false; 
            this.dgvShow.AllowUserToDeleteRows = false; 
            this.dgvShow.AllowUserToResizeRows = false; 
            this.dgvShow.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 
            this.dgvShow.Dock = System.Windows.Forms.DockStyle.Top; 
            this.dgvShow.Location = new System.Drawing.Point(0, 0); 
            this.dgvShow.Name = "dgvShow"; 
            this.dgvShow.RowTemplate.Height = 23; 
            this.dgvShow.Size = new System.Drawing.Size(885, 600); 
            this.dgvShow.TabIndex = 0; 
            //  
            // btnSelect 
            //  
            this.btnSelect.Location = new System.Drawing.Point(202, 611); 
            this.btnSelect.Name = "btnSelect"; 
            this.btnSelect.Size = new System.Drawing.Size(148, 23); 
            this.btnSelect.TabIndex = 1; 
            this.btnSelect.Text = "选择excel文件"; 
            this.btnSelect.UseVisualStyleBackColor = true; 
            this.btnSelect.Click += new System.EventHandler(this.btnSelect_Click);