, , . -, , .
, , , , , RowCommand event GridView CommandName property GridViewCommandEventArgs. GridView "Command" "Button".
string/text CommandName, RowCommand , . Button1 Button2, , , , CommandName , SELECT selecT ..
select CommandName , . , GridView, CommandName , SELECT, , - RowCommand,
if (e.CommandName == "select")
{
Label1.Text = "You clicked first button";
}
else
{
Label1.Text = "You clicked second button";
}
SelectedDataKey GridView . , , CommandName, select_one, select_two , select_one, , SelectedDataKey GridView null DataKey , .
, - , . , !