multiplex77
Programmer
Hi,
I'm an ASP programmer, now learning the ropes with .NET. I'm trying to create a DataGrid with an "Edit" button and a "Delete" checkbox at the end of each row, like this:
<tr>
<TD>record1_col1</TD>
<TD>record1_col2</TD>
<TD><a href="edit.asp?id=1"><img src="images/edit.jpg"></a>
</TD>
<TD><input type=checkbox name=chkDelete value="1"></TD>
</TR>
My intention for Edit is to edit the record in another webform.
My intention of Delete is to be able to check the checkboxes of the records I want to delete, and click a "Delete" button at the bottom of the form.
1. Does DataGrid provide such form of customization? Also, how can I make the Edit and Delete appear on the RIGHTmost column of the row. The DataGrid default is to have it appear on the left column.
2. Also, how can I place the ID of the record (fr the database) appear within the form objects of the row,
e.g.,
<input type=checkbox value="<%= objRS("ID"
%>" name=chkDelete>
Thanks very much for the help.
I'm an ASP programmer, now learning the ropes with .NET. I'm trying to create a DataGrid with an "Edit" button and a "Delete" checkbox at the end of each row, like this:
<tr>
<TD>record1_col1</TD>
<TD>record1_col2</TD>
<TD><a href="edit.asp?id=1"><img src="images/edit.jpg"></a>
</TD>
<TD><input type=checkbox name=chkDelete value="1"></TD>
</TR>
My intention for Edit is to edit the record in another webform.
My intention of Delete is to be able to check the checkboxes of the records I want to delete, and click a "Delete" button at the bottom of the form.
1. Does DataGrid provide such form of customization? Also, how can I make the Edit and Delete appear on the RIGHTmost column of the row. The DataGrid default is to have it appear on the left column.
2. Also, how can I place the ID of the record (fr the database) appear within the form objects of the row,
e.g.,
<input type=checkbox value="<%= objRS("ID"
Thanks very much for the help.