chandu gummadi

chandu gummadi

  • NA
  • 67
  • 73.5k

C#.net DataGridView Control

Oct 1 2012 2:57 AM
Hi Friends...

Iam using windows forms Application i was inserted a combobox column in datagridview. It works properly but it shows empty value  in combobox. and iam selecting one value from combobox it shows that value. so why it shows empty valu first?


iam using the below code


            DataGridViewComboBoxColumn clnStatus = new DataGridViewComboBoxColumn();
            clnStatus.DataPropertyName = "Status";
            clnStatus.Name = "Absent - Leave - Present";
            clnStatus.DataSource = new string[] { "absent", "present", "leave" };

its working but if iam selecting Absent or Leave from datagridview combobox column it should disply textbox automatically in datagridview another textboxcolumn.


please help me friend... 





Answers (3)