By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,677 Members | 1,301 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,677 IT Pros & Developers. It's quick & easy.

DataGrid, A timing issue?

P: n/a
I have two questions...
I have a datagrid. I'm capturing the cell via HitTestInfo.
The first question is fairly simple. I'm using an example of how to capture
the row/column I found on the net. It uses
System.Windows.Forms.DataGrid.HitTestInfo myHitTest;
The first question is, when I use this in my code, it compiles and works
fine. But when I type...
and press the "." at the end of DataGrid, I don't get the Methods/Properties
listbox. I thought I was doing something wrong, and then I decided to
compile it and it compiled ok. Then it ran ok. Whey doesn't it show the
Methods/Properties for System.Windows.Forms.DataGrid.

My second question is...
In a dataGrid1_MouseDown event, I'm detecting the datagrid row/column using
the above technique. I then call another class/dialog from the
dataGrid1_MouseDown event which opens up another dialog. I want the cell I
click to be highlighted before the new dialog opens. The way it works now,
the cell is highlighted after I close the newly opened dialog. I've tried
doing a dataGrid1.Refresh() and dataGrid1.Invalidate() but it still doesn't
repaint the datagrid before opening up the new dialog. Can this be

Thanks for any input... :)
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.