Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 11-06-2009
Join Date: Nov 2008
Posts: 89
.net datagridview mouse position

I am using Excel application in which one of my columns is hidden, and i wanted to develop an application, when i make my mouse tip overthere at that time it should be prompt me as the content of this cell has been hidden baut this should happen when i take my mouse tooltip over the hidden column content. I used to do this with the component one flexigrid, and that had a MouseCol and a MouseRow property that were ideal for this. is it this possible with the mouse pointer or with the tooltip ?
Reply With Quote
Old 29-06-2009
Join Date: Jan 2006
Posts: 211
Re: .net datagridview mouse position

If you wanted to have the datagridview using .net then you will have to inherit from the DataGridView and override these mouse events as the selection change will always get called otherwise. here i will provide you to function with their argument to be used to call them.

protected virtual void OnCellMouseDown(DataGridViewCellMouseEventArgs e);
protected virtual void OnCellMouseUp(DataGridViewCellMouseEventArgs e);
Reply With Quote
Old 29-06-2009
Join Date: Jan 2009
Posts: 99
Re: .net datagridview mouse position

I am displaying records in datagridView control when the form is loaded in the Windows Application.later i found that we need to attach an event handler to the DataGridView's MouseDown event. Because the DataGridView monopolizes the left mouse button, and it is very efficient at performing updates, inserts, and deletes, I decided to use the right mouse button for drag-and-dropping. One nugget was the MSDN thread dealing with pasting to the Clipboard with Excel ready input (MSDN PostID 238181). Selection of a row with the mouse, custom highligting of the row, and copying the selected row to the clipboard is done in one mouse click. This simplifies the user process a bit and leaves less room for error.
Reply With Quote

  TechArena Community > Software > Software Development
Tags: , , ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: ".net datagridview mouse position"
Thread Thread Starter Forum Replies Last Post
Mouse pointer position change for no reason- Windows XP Robert Beck Hardware Peripherals 4 05-04-2011 10:11 AM
Insert DataGridview into database Neil'o Software Development 3 24-09-2009 11:28 AM
Datagridview does not detect scrollbars Fragman Software Development 2 10-06-2009 01:37 PM
Move Rows of Datagridview In VB.Net Ariadne Software Development 2 22-01-2009 10:40 PM
Difference Between DataGrid and DataGridView In VB.Net Gallard Software Development 3 17-01-2009 05:08 PM

All times are GMT +5.5. The time now is 05:43 AM.