you can get desired results by specifying a blank as currency symbol:
GridCellInfo1.StyleInfo.CurrencyEdit.CurrencySymbol = " "
GridCellInfo1.StyleInfo.CurrencyEdit.NullString = " 0"
The empty currency symbol is what is causing problems. When testing we always specified a currency symbol, that''s why we didn''t notice it.
Another and probably better way is to handle the CurrentCellDeleting event as follows:
Private Sub GC1_CurrentCellDeleting(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles GC1.CurrentCellDeleting
Dim style As Syncfusion.Windows.Forms.Grid.GridStyleInfo = GC1.Model(GC1.CurrentCell.RowIndex, GC1.CurrentCell.ColIndex)
If TypeOf GC1.CurrentCell.Renderer Is Syncfusion.Windows.Forms.Grid.GridCurrencyTextBoxCellRenderer Then
GC1.CurrentCell.Renderer.ControlText = "0" '' or style.CurrencyEdit.NullString
>Ok I was soooooooo excited to get to working on this new version. The first thing I tested which I knew had to be changed didnt work. I''ve attached a sample. In the sample I have col1 set to currency cells with a nullstring set to zero. Now in 3110 which is the version we have been using we had to take that out and make all the nullstrings blank and handle everything in the clearingcells routine because thats how you told us to do it in version 2. This is because of some other bug you had and you said we were doing it wrong and do it that way. Then in like 3.3 you decided to changed it all back to using nullstring again. So thats why we stuck with 3110 and were waiting until 4. So we knew starting this project we would have to change all the nullstrings back to whatever default we wanted. So in this sample if you click on cell 1,1 and hit your delete key you will notice it went from 3300 to 3. Its leaving the first digit of the cellvalue that was in there before. If you select a range of cells like 1,1 to 5,1 and hit delete they will ALL change to zero like they should. It seems to be doing this on single cells only. This is no way to start off my testing and is scaring me away from version 4.1 already. This was THE FIRST thing i tested and its messed up already. Test 4105 Grid Problems.zip