We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Prevent user from deleting a column in GDBG ?

I want to select a column in GDBG to move but I don''t want user can delete this column by press Delete key. I try to catch KeyDown,KeyPress event on GDBG but it''s no effect. Please, help me. Thanks.

1 Reply

AD Administrator Syncfusion Team January 29, 2005 06:41 AM UTC

Try handling the grid.Model.ClearingCells event.
private void Model_ClearingCells(object sender, GridClearingCellsEventArgs e)
	foreach(GridRangeInfo r in e.RangeList)
			e.Handled = true;
			e.Result = false;

Live Chat Icon For mobile
Up arrow icon