Which code segment should you use?

You are creating a Windows Forms application. Initialization code loads a DataSet object named ds that includes a table named Users. The Users table includes a column named IsManager. You need to bind the IsManager column to the Checked property of a check box named chkIsManager. Which code segment should you use?

You are creating a Windows Forms application. Initialization code loads a DataSet object named ds that includes a table named Users. The Users table includes a column named IsManager. You need to bind the IsManager column to the Checked property of a check box named chkIsManager. Which code segment should you use?

A.
chkIsManger.DataBindings.Add("Checked".ds "Users.IsManager");

B.
chkIsManger.DataBindings.Add("Checked".ds "IsManager");

C.
chkIsManger.Text = "{Users.IsManager}";
chkIsManager.AutoCheck = true;

D.
this.DataBindings.Add("chkIsManager.Checked" , ds, "Users.IsManager");



Leave a Reply 0

Your email address will not be published. Required fields are marked *