I have combobox1 , combobox2 ,combobox3 ,combobox4 ,combobox5 ,combobox6
and button1
the comboboxes are getting their data from sql tables
combobox4 ,combobox5 ,combobox6 are hidden by default
combobox1 , combobox2 ,combobox3 disabled by default
I want combobox1 ,combobox2 ,combobox3 to hide themselves if their value is null and
show the other hidden ones which are combobox4 ,combobox5 ,combobox6 and if
combobox1 ,combobox2 ,combobox3 have value stay disabled and keep
combobox4 ,combobox5 ,combobox6 hidden
and the event of button1 check which 3 comboboxes are hidden and use the data in the visible ones to insert them into the table
thanks in advance
sneeze snoezePosted Sep 27, 2014, 3:45 PM
What is the value of the selected index ?
mind controllPosted Sep 27, 2014, 12:32 PM
not working and I got red lines under everything
is there's a way in c# not in java
thanks for your help
Arunava BhattacharjeePosted Sep 26, 2014, 8:20 AM
mind controllPosted Sep 26, 2014, 7:34 AM
I used this approach :
private void combobox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (combobox1.SelectedIndex > -1)
{
combobox1.Visible = false;
combobox3.Visible = true;
}
}
but not working
Arunava BhattacharjeePosted Sep 26, 2014, 7:27 AM
In the code behind check which combo boxes are not null, and pass the values to DB. Hope this helps.
Please mark this as accepted.