You can use the CommandName parameter of the ButtonColumn control to be
able
to determine the type of action that the user wish to perform on the
record,
e.g.:
<asp

ataGrid ID="DataGrid1" Runat="server">
<Columns>
<asp:ButtonColumn DataTextField="Field1" CommandName="Select"
ButtonType="PushButton"></asp:ButtonColumn>
<asp:ButtonColumn Text="Delete Row" CommandName="Delete"
ButtonType="PushButton"></asp:ButtonColumn>
<asp:ButtonColumn Text="Duplicate Row" CommandName="Duplicate"
ButtonType="PushButton"></asp:ButtonColumn>
</Columns>
</asp

ataGrid>
And in handling the ItemCommand event of the datagrid, you would write
code
similar to this:
private void DataGrid1_ItemCommand(object source, DataGridCommandEventArgs
e)
{
switch (e.CommandName.ToString ())
{
case "Select":
//selection code
break;
case "Duplicate":
//do Duplicate code
break;
case "Delete":
//delete code
break;
}
}
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com