Form_Load(){ DataGridViewComboBoxColumn^ ReligionClm = gcnew DataGridViewComboBoxColumn(); this->myDataGrid1->Columns->Remove("religion"); this->myDataGrid1->Columns->Insert(5, ReligionClm); this->myDataGrid1->Columns[5]->Name = "religion"; } System::Void MyDataGrid1_EditingControlShowing() { ComboBox^ ComBox = dynamic_cast<ComboBox^>(e->Control); ComBox->SelectedIndexChanged += gcnew EventHandler(this, &Form_Form1::EmpCmb_SelectedIndexChanged); } System::Void EmpCmb_SelectedIndexChanged() { if (myDataGrid1->CurrentRow->Cells["religion"]->Value=="Add New Item"){ DataGridViewTextBoxCell^ TxtBoxCell = gcnew DataGridViewTextBoxCell(); myDataGrid1[5, myDataGrid1->CurrentCell->RowIndex] = TxtBoxCell; ??????????? Any Chnages will be helpful.... } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)