I have a one textbox on the form and combo1 in datagridview
when form is load combo1 is empty
if value of text1.text is 'A'
then combo1 should have below items.
combo1.Items.Clear();
combo1.Items.Add("Director");
combo1.Items.Add("MD");
combo1.Items.Add("President");
combo1.Items.Add("Chairman");
combo1.Items.Add("FullTimeDir");
and
if value of text1.text is 'B' then combo1 should have below values.
combo1.Items.Clear();
combo1.Items.Add("Director");
But when i run the form and change the value of textbox
the combo1 remains blank
Note: I have used textbox.validating event. to change combo1 values
so pls help me for this problem
thanks in advance.