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

How to bind a result of condition to a combobox?

$
0
0

How can I bind a condition of Boolean data type?

there is a bit field which contain false or true in the Database, when scrolling the data Movenext or Moveprevious either of them must checked Yes Or No checkbox as the database field but I need to make a condition to use that in scrolling.

chkYes.DataBindings.Add(new Binding("Checked", bs, "Judgement", true, DataSourceUpdateMode.OnPropertyChanged));
chkNo.DataBindings.Add(new Binding("Checked", bs, "Judgement", true, DataSourceUpdateMode.OnPropertyChanged));



Viewing all articles
Browse latest Browse all 2535

Trending Articles



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