How to get the primary key value in DeleteCommand event of a RadGrid
First of all you should set the MasterTableView.DataKeyNames property of the RadGrid to the primary key columns: <MasterTableView DataKeyNames="Id"> <telerik:RadGrid ID="customerOverviewRadGrid" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="customersDS" EnableLinqExpressions="false" runat="server" ondeletecommand="customerOverviewRadGrid_DeleteCommand" > <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle> <MasterTableView DataKeyNames="Id"> <Columns>