Results 1 to 3 of 3

Thread: .net datagridview mouse position

  1. #1
    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 ?

  2. #2
    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.

    Code:
    protected virtual void OnCellMouseDown(DataGridViewCellMouseEventArgs e);
    protected virtual void OnCellMouseUp(DataGridViewCellMouseEventArgs e);

  3. #3
    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,303,500.98046 seconds with 17 queries