dataGridView1->ColumnCount = 5; dataGridView1->Columns[ 0 ]->Name = "1行目"; dataGridView1->Columns[ 1 ]->Name = "2行目"; dataGridView1->Columns[ 2 ]->Name = "3行目"; dataGridView1->Columns[ 3 ]->Name = "4行目"; dataGridView1->Columns[ 4 ]->Name = "5行目"; array<String^>^row0 = {"001","A","January","Sunday","one"}; array<String^>^row1 = {"002","B","February","Monday","two"}; array<String^>^row2 = {"003","C","March","Tuesday","three"}; array<String^>^row3 = {"004","D","April","Wednesday","four"}; array<String^>^row4 = {"005","E","May","Thursday","five"}; array<String^>^row5 = {"006","F","June","Friday","six"}; DataGridViewRowCollection^ rows = dataGridView1->Rows; rows->Add( row0 ); rows->Add( row1 ); rows->Add( row2 ); rows->Add( row3 ); rows->Add( row4 ); rows->Add( row5 ); rows->Add( "007","G","July","Saturday","Saturday" );
2011年2月27日日曜日
行、列を生成する
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿