Monday, February 2, 2009

DataGridView + Focus to a Row Cell

I have to check the validation of DataGridView and have to check the value should not repeate more then one time. I Solve this problem just by adding the following two lines of code and its working very fine. Do you facing the same problem, Please go through and it will definetely resolve your problem.

If you know the cell, like having a reference to it from the variable desiredCell you can simply do the following:

dataGridView1.CurrentCell = desiredCell;
dataGridView1.BeginEdit(true);

Solve na?? Now add your comments buddy. :)
Regards,
Vijay Modi

No comments:

Post a Comment