Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

datagridview cell validation problem

$
0
0

I have a datagridview, in that when i press enter key at the last column of the row it creates a new row.First column name is code and last column is datagridviewbuttoncolumn  named void. when i click void button,the entire row have to be deleted.

For validating the code cell,i wrote e.cancel=true to stay the cursor in same cell if it is empty.

When leaving the code cell empty and all the other columns are filled, i cant click the void button and it stays the cursor in code column itself.

I want to enable the click event to enable when the column is empty but it wont move to next cell of datagridview.

Is there any possibilities to do this....


Viewing all articles
Browse latest Browse all 12583

Trending Articles



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