471,627 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Setting focus to a particular cell in DataGrid

Hi,

Anyone knows how can i set the focus to a particular cell in DataGrid.

Thanks,
Sailaja.

Jan 9 '06 #1
3 2498
Sun
Not sure what you want. Pls provide more details.

sailu wrote:
Hi,

Anyone knows how can i set the focus to a particular cell in DataGrid.

Thanks,
Sailaja.


Jan 12 '06 #2
KJ
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);

Jan 12 '06 #3
I tried the CurrentCell Property. I can able to point a particular
cell. But i want to set focus to that particular cell.

Jan 12 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by raj | last post: by
2 posts views Thread by Nanda | last post: by
5 posts views Thread by Bryan Masephol | last post: by
2 posts views Thread by Bill C. | last post: by
1 post views Thread by rroca | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.