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

Binding Radio Buttons

$
0
0

Hi folks,

In my db I have a field called PRTRFlag. This field contains either a 'P' or a 'T'.

I want to represent these values on my form with radio buttons. I have rdoPr and rdoTr.

Im trying to bind the data without success...

I've tried the following:

rdoPr.DataBindings.Add("Tag", _bindingSource, "PRTRFlag"); // where TAGs are set to P and T
rdoPr.DataBindings.Add("Selected", _bindingSource, "PRTRFlag");

What am I missing here?

J


jppnn


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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