For Programmers: Free Programming Magazines  


Home > Archive > C# > January 2005 > How to create a DataGrid with check boxes generically









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to create a DataGrid with check boxes generically
peteshaw

2005-01-18, 9:01 pm

I have been trying to find a simple answer this problem for a few days
now, and was wondering if anyone had access to a simple answer.

I just want to creat a web page with a datagrid, with a text box above
it in which you can enter an SQL string. Once you enter the SQL,
"select * from employees", and press submit, the datagrid is bound, and
the columns are automatically generated.

Once the grid is generated, how can I add a column of check boxes, to
allow the user to select rows to delete, edit, etc..? Its a simple
enough problem if you only have one table you are binding to, but if
the table is going to vary, I don't know how to proceed.
Thanks for listening, best to all of you.

--Pete

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com