Check Box inside a datagrid in VS2003
-
Hi, I have a situation where I have to have a check box inside a Data grid. And the datagrid will be filled by set of rows from a database. selecting a check box should enble me to find the exact row in the databse. I tried a number of articles. But nothing could do what exactly I want. Can any one help me out. Environment: VS2003. Thanks in advance
Rate This Message. A.Surenth.
-
Hi, I have a situation where I have to have a check box inside a Data grid. And the datagrid will be filled by set of rows from a database. selecting a check box should enble me to find the exact row in the databse. I tried a number of articles. But nothing could do what exactly I want. Can any one help me out. Environment: VS2003. Thanks in advance
Rate This Message. A.Surenth.
Anthony Surendran wrote:
selecting a check box should enble me to find the exact row in the databse.
This is easiest when your table has a primary key defined. Make sure the data that populates the grid also has the primary key returned. You can bind the primary key to a hidden column in the grid and use that as a future reference to find the corresponding row in the table.
SG