Webpage app I'm trying to develop

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi, I'm pretty new to ASP.NET so not even sure how to do this correctly.

On a webpage I want to display a table with rows of data from a database
table (that bit I can do using datagrids etc).

However against each row of data I want a column with a checkbox. The user
can check off each data row they want, and when they click aSUBMIT button at
the bottom of the screen it will read the contents of the checkbox and write
back to the databas table.

Is there a way to add a checkbox to each row of the datagrid?

I'm thinking alternitivitly I can programmatically build the HTML table and
then I can do pretty much what I want, but I would prefer to use the
datagrid if I can.

Any hints would be appreciated
Paul
 
Paul

Check the sample below
http://samples.gotdotnet.com/quicks...ms/ctrlref/webctrl/datagrid/VB/datagrid13.asp

Check the code in the following link
http://samples.gotdotnet.com/quicks...bforms/ctrlref/webctrl/datagrid/datagrid13.sr

Suresh


----- Paul wrote: ----

Hi, I'm pretty new to ASP.NET so not even sure how to do this correctly

On a webpage I want to display a table with rows of data from a databas
table (that bit I can do using datagrids etc)

However against each row of data I want a column with a checkbox. The use
can check off each data row they want, and when they click aSUBMIT button a
the bottom of the screen it will read the contents of the checkbox and writ
back to the databas table

Is there a way to add a checkbox to each row of the datagrid

I'm thinking alternitivitly I can programmatically build the HTML table an
then I can do pretty much what I want, but I would prefer to use th
datagrid if I can

Any hints would be appreciate
Pau
 
Paul said:
On a webpage I want to display a table with rows of data from a database
table (that bit I can do using datagrids etc).
However against each row of data I want a column with a checkbox.

Paul, look into using Andy Smith's free BoundBooleanColumn DataGrid
column class.
http://metabuilders.com/Tools/BoundBooleanColumn.aspx

Happy Programming!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 
Back
Top