private void setKessantoukeiDataGridView()
        {
            
this.dgvEvent.Columns.Clear();

            DataGridViewTextBoxColumn colList 
= new DataGridViewTextBoxColumn();
            colList.Name             
= "";
            colList.HeaderText       
= "";
            colList.DataPropertyName 
= "";
            colList.DefaultCellStyle.Alignment 
= DataGridViewContentAlignment.MiddleCenter;
            colList.ReadOnly         
= true;
            colList.Width            
= 200;
            DataGridViewTextBoxColumn colRow 
= new DataGridViewTextBoxColumn();
            colRow.Name              
= "";
            colRow.HeaderText        
= "";
            colRow.DataPropertyName  
= "";
            colRow.DefaultCellStyle.Alignment 
= DataGridViewContentAlignment.MiddleCenter;
            colRow.ReadOnly          
= true;
            colRow.Width             
= 200;
            DataGridViewTextBoxColumn colCol 
= new DataGridViewTextBoxColumn();
            colCol.Name              
= "";
            colCol.HeaderText        
= "";
            colCol.DataPropertyName  
= "";
            colCol.DefaultCellStyle.Alignment 
= DataGridViewContentAlignment.MiddleCenter;
            colCol.ReadOnly          
= true;
            colCol.Width             
= 200;

            
this.dgvEvent.Columns.Add(colList);
            
this.dgvEvent.Columns.Add(colRow);
            
this.dgvEvent.Columns.Add(colCol);
            
            
this.dgvEvent.RowHeadersVisible = false//RowHeaderを非表示
        }






posted on 2010-08-24 09:59 Ying-er 阅读(766) 评论(0)  编辑  收藏 所属分类: .Net

只有注册用户登录后才能发表评论。


网站导航: