Select the tiny arrow at the top of the parts view and select Edit Fields.
Double-click ButtonField to add a button ...
Change the settings according to your needs (ButtonType and Text) and, most importantly, CommandName, which can be a "Check" for your script
And for the event, use the ItemCommand event
void MyDetailView_ItemCommand(Object sender, DetailsViewCommandEventArgs e)
{
if (e.CommandName == "Check")
{
}
}
source
share