Set Focus In A Particular Cell Of DataGridView In C#.Net
How to check whether the cell is empty or not (should contain value) on it's cell leaving. And after displaying proper message to user how to set focus in that particular cell.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
rajPosted Oct 6, 2009, 5:09 AM
You can write code on the cell validating event.
DataGridview.Rows[e.rowsinded].cells["cellname"].value == null
prompt for message box.
DataGridview.Rows[e.rowsinded].cells["cellname"].Selected = true.
Raj