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

Clear Cell DatagridView in Cell Validating event

$
0
0

Hi,

I want to know how to delete a cell datagridview value in Cell validating event after or before setting e.cancel to true.

I tried the following:

1- Datgridview.Item(e.columnIndex, e.RowIndex).Value = System.Dbnull.Value

2- Datagridview.CurrentCell.value = system.dbnull.value

But they did not work. Can Anyone help me please,

Thank you

 


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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