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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridControl: Inner exception after press DELETE key

Thread ID:





17880 Aug 19,2004 12:55 AM UTC Aug 23,2004 07:53 AM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On August 19, 2004 12:55 AM UTC

Hello ! I have virtual grid, implemented via GridControl. After pressing DELETE key on focused cell, the following shows in output: catched at Syncfusion.Windows.Forms.Grid.GridModel.SetCellInfo(Int32 rowIndex, Int32 colIndex, GridStyleInfo style, StyleModifyType modifyType, Boolean dontRaiseSaveCellInfoEvent, Boolean copyReferenceOnly) in :line 0 catched at Syncfusion.Windows.Forms.Grid.GridModel.ClearCells(GridRangeInfoList rangeList, Boolean clearStyle) in :line 0 I already ask you same question, when I was implementing Drag and Drop, but how to avoid it here, after pressing button ? Thanks. Vadim.

Administrator [Syncfusion]
Replied On August 19, 2004 04:59 AM UTC

Without a working sample to look at, the only thing I can do is guess at what is causing this problem. If you can provide a sample showing the problem, we can try to debug it here and possibly give you better advice. It looks like the problem is in trying to clear a cell that has a bool value. Is your data source a DataTable or something that has a bool values in it. And if so, does your datasource allow the value to be null? If not, then you should not allow clearing of these cells. One way to prevent it, is to handle the ClearingCells event and set e.Handled = true and e.Result = false when e.RangeList intersects with your bool cells.

Administrator [Syncfusion]
Replied On August 23, 2004 06:31 AM UTC

It work for but the problem appeared for me again in GridListControl :( I have context menu with Delete option (delete row), either deletion available via Key. In Delete Key handler I just call menuDel.performClick. Delete means delete single row in datatable, that is datasource for GridListControl. The strange effect: when I press delete button, grid catch exceptions, that were described above, when I choose delete via context menu, all is OK. The GridListControl haven''t ClearCells event :(

Administrator [Syncfusion]
Replied On August 23, 2004 07:53 AM UTC

GridListControl.Grid has a ClearingCells event.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon