Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Operation did not succeed because the program cannot commit or quit a cell value change.

$
0
0

Hello everyone,

I got the following error message :

"Operation did not succeed because the program cannot commit or quit a cell value change."

When I sets the current cell to anyone cell of DataGridView.

I have also override one method for that named
SetCurrentCellAddressCore(). But still error remains......


protected override bool SetCurrentCellAddressCore(int columnIndex, int rowIndex, bool setAnchorCellAddress, bool validateCurrentCell, bool throughMouseClick)
                {

                    try
                    {                       
                        return base.SetCurrentCellAddressCore(columnIndex, rowIndex, setAnchorCellAddress, validateCurrentCell, throughMouseClick);                      
                   
                    }
                   
                }

And other problem is that after this error, two or three blank rows added automatically in datagridview....

If anybody have the solution please reply.....

Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>