S
sianan
I have a DataGrid which displays data from a table in a MS SQL 2000
database. My problem is that I have a bit column in the database whose
values I want to display as checkboxes in the DataGrid. I want to
display "1" values (True) as checked boxes, and "0" values (False) as
unchecked boxes. I haven't been able to figure out how to do this. I
also want to be able to propagate changes from the DataGrid immediately
back to the database , and I have no idea of how to do that either. In
other words, if I check off a column, the column in the database will
be changed, so that is contains a "1" (or a "0" if unchecked). (Of
course, this would be a lot easier if I knew how to get this column to
display as a checkbox in the first place.)
As always, help is greatly appreciated.
database. My problem is that I have a bit column in the database whose
values I want to display as checkboxes in the DataGrid. I want to
display "1" values (True) as checked boxes, and "0" values (False) as
unchecked boxes. I haven't been able to figure out how to do this. I
also want to be able to propagate changes from the DataGrid immediately
back to the database , and I have no idea of how to do that either. In
other words, if I check off a column, the column in the database will
be changed, so that is contains a "1" (or a "0" if unchecked). (Of
course, this would be a lot easier if I knew how to get this column to
display as a checkbox in the first place.)
As always, help is greatly appreciated.