chandu gummadi

chandu gummadi

  • NA
  • 67
  • 73.4k

c#.net datagridview combobox column and textbox column

Oct 4 2012 1:45 AM
hi friends
 iam using datagridview combobox column in windows froms if iam selecting Absent or Leave from datagridviewcombobox column how it should display Textbox Automatically in another datagridviewtextbox column.

iam using bellow code..
   DataGridViewComboBoxColumn clnStatus = new DataGridViewComboBoxColumn();
   clnStatus.DataPropertyName = "Status"; 
   clnStatus.Name = "Absent - Leave - Present";
   clnStatus.DataSource = new string[] { "Absent", "Leave", "Present" };
   DgvTeacherAttendance.Columns.Add(clnStatus);

please help me friends....