Setting a checkbox based on a value in a DB

  • Thread starter Thread starter C
  • Start date Start date
C

C

Hi,

Based on a flag in my database table I want to make a
server side checkbox checked.

How can I dynamically do this through code?

Thanks,
C
 
Not sure what your looking for.....
If your using data binding with a datagrid...
in a windows application this is automatic, you have to do nothing...
in a web app you get "True" or "False" in the grid, you have to use a
TemplateColumn in combination with ItemCreated event to set the checked
proerty of the check box control to the value coming from the database.
If your not using databinding
what are you using......?
datareader..?
dataset..?
datatable..?
xml...?
 
mycheckbox.Checked = true or false depending on the value you get form you
database
 
Back
Top