Friday, March 30, 2012

regarding data grid

what datafield shoud i put in my database if its a checkbox option?

coz in my datagrid i added a checkedbox so that i can easily manipulate it.but when i run it. it produces error. and doesnt recognize the checkbox column.

it said that there none in the datasource.but i dont know what should i put in the database! pls help!thanks

You could have your field in the table set to anything you want. You would however need to translate what "checked" or "not checked" in a datagrid means. Google for "Using checkbox columns in datagrid". Generally I have seen boolean columns, some "tinyint" type columns being used to store the check selection.

No comments:

Post a Comment