Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Changing Datagridview Combobox Items Programaticly

$
0
0

Hello there,

I am making a Winform application. The form has a datagridview. Datagridview has 6 columns.

  • ID: invisible. I use it to hold line numbers.
  • Description: It will be Text. If this field is left blank, I want the next column to be readonly.
  • Operation: A combobox. There will be 7 items inside. As long as SelectedIndex is -1 I want other elements to be readonly. The content of other elements will change according to the selected element. Elements: Unit, Valve, Heater, Pause, Continue, Reset.
  • Object: A combobox. If the previous element is selected as Unit, I want to change the items of this element as Unit 1, Unit 2, Unit 3, if Valve is selected as Valve 1, Valve 2, Valve 3, Valve 4, and if it is selected as Heater, I want to change it to Heater 1, Heater 2.

    I need help on how to do this. How can I do it?

Şu hayatta sahip olduğum tek şey imanımdır.Onun da beni ölüm anında bırakmamasını RabbirRahimden niyaz ederim.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>