Exemplo n.º 1
0
        protected void gResourceLinks_DeleteCommand(object sender, GridCommandEventArgs e)
        {
            var resourceId = (int)((GridDataItem)e.Item).GetDataKeyValue("Id");

            _ = SqlHelpers.Delete(SqlStatements.SQL_DELETE_RESOURCE_LINK_BY_ID.FormatWith(resourceId));
            ((RadGrid)sender).Rebind();
        }
        protected void gSenimentalSayings_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            var sayingId = (int)((GridDataItem)e.Item).GetDataKeyValue("Id");

            _ = SqlHelpers.Delete(SqlStatements.SQL_DELETE_RANDOM_SAYING.FormatWith(sayingId));
        }