Hello,
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...
System.Windows.Forms.DataGrid
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
accomplished?
Thanks for any input... :)