S sailu Jan 9, 2006 #1 Hi, Anyone knows how can i set the focus to a particular cell in DataGrid. Thanks, Sailaja.
K KJ Jan 12, 2006 #3 use the CurrentCell property: System.Windows.Forms.DataGrid.HitTestInfo hitInfo = dg.HitTest(new Point(e.X, e.Y)); // find out which cell is entered dg.CurrentCell = new DataGridCell(hitInfo.Row,hitInfo.Column);
use the CurrentCell property: System.Windows.Forms.DataGrid.HitTestInfo hitInfo = dg.HitTest(new Point(e.X, e.Y)); // find out which cell is entered dg.CurrentCell = new DataGridCell(hitInfo.Row,hitInfo.Column);
S sailu Jan 12, 2006 #4 I tried the CurrentCell Property. I can able to point a particular cell. But i want to set focus to that particular cell.
I tried the CurrentCell Property. I can able to point a particular cell. But i want to set focus to that particular cell.