PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

A.
chkIsManager.DataBindings.Add(“Checked”, ds, “Users.IsManager”);

B.
chkIsManager.DataBindings.Add(“Checked”, ds, “IsManager”);

C.
chkIsManager.Text = “{Users.IsManager}”;chkIsManager.AutoCheck = true;

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


Leave a Reply