Example #1
0
        protected void deviceGrid_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            _device    = new Device();
            _device.ID = int.Parse(
                (e.Item as GridDataItem)
                .OwnerTableView
                .DataKeyValues[e.Item.ItemIndex]["device_id"]
                .ToString());

            _device.LastChangedBy = User.Identity.Name;


            int returnResult = _deviceDAO.Delete(_device);

            BindData();
        }