How to show the data grids view in a tooltip?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: How to show the data grids view in a tooltip?

  1. #1
    Join Date
    Jan 2009
    Posts
    3

    Question How to show the data grids view in a tooltip?

    Hi,

    I would like to show a tooltip when the user move the mouse over the first column of my gridview.

    The tooltip should be bound to a field of the gridview's datasource that correspond to the row being hovered.

    How can I do that ?

    Thanks,
    Raj
    Raj Aryan is working for Web Development Company in india as a .net programer and he has worked on various microsoft .Net Development Projects.

  2. #2
    Join Date
    Jun 2005
    Location
    Maryland,USA
    Posts
    20

    Re: How to show the data grids view in a tooltip?

    You will need to use the RowDataBound event of the gridview to access the tool tip field and bind it to the field you want to link it to.

  3. #3
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: How to show the data grids view in a tooltip?

    going along with cafedreamz, you would use this code inside the "RowDataBound" event

    Code:
    e.Row.Cells[0].ToolTip = "Hey";
    That sets the TooTip for Column 1 to "Hey" for that row.

  4. #4
    Join Date
    Jan 2009
    Posts
    3

    Re: How to show the data grids view in a tooltip?

    Quote Originally Posted by cafedreamz View Post
    You will need to use the RowDataBound event of the gridview to access the tool tip field and bind it to the field you want to link it to.
    Thanks for suggestion
    Raj Aryan is working for Web Development Company in india as a .net programer and he has worked on various microsoft .Net Development Projects.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center