CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2003
    Location
    bangalore
    Posts
    31

    creating hyperlink in a datagrid cell

    hai,

    i want to create a hyperlink to one cell in a windows forms datagrid. I have not found support for this in windows forms. But i think, there is lot of support for this control in web forms. Can any one suggest me, if possible through example, how to create a hyperlink to a cell in datagrid.

    bye

  2. #2
    Join Date
    Apr 2003
    Location
    Hyderabad,India
    Posts
    486

    Re: creating hyperlink in a datagrid cell

    Originally posted by raghavkotha
    hai,

    i want to create a hyperlink to one cell in a windows forms datagrid. I have not found support for this in windows forms. But i think, there is lot of support for this control in web forms. Can any one suggest me, if possible through example, how to create a hyperlink to a cell in datagrid.

    bye
    Hi Raghav,
    I do not know c# but I got some URLs on net.
    I will be glad if the links are useful in any way to you.

    http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp

    http://www.dotnetfun.com/Articles/AS...ntsCSharp.aspx
    http://www.appserver-zone.com/codemag/Article/11489

    Hope they may help...
    Try other links in the above mentioned URLs if you think they are useful..

    Best wishes for your Sharp programming in c#

    cheers
    mahanare
    Thanks n Regards
    Harinath Reddy
    Learn Hello World Program
    A good scientist is a person with original ideas. A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. - Freeman Dyson

  3. #3
    Join Date
    Apr 2003
    Location
    Hyderabad,India
    Posts
    486
    for your info..
    I searched in google with the key word

    "windows forms datagrid in c#"

    it seems lot of help is available.
    Thanks n Regards
    Harinath Reddy
    Learn Hello World Program
    A good scientist is a person with original ideas. A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. - Freeman Dyson

  4. #4
    Join Date
    Apr 2003
    Location
    bangalore
    Posts
    31

    creating hyperlink in datagrid cell

    hai,

    yes, we can create hyperlink in datagrid cell only when the user clicks in a cell. If user clicks at a point, then by using hittest method, we will get cell position. Then we can paint a linklabel at that cell position with the actual content of the cell. Thus we can create hyperlink.

    But it is not the required solution. But i to not get creating hyperlink directly or even through mousehover event.

    bye

  5. #5
    Join Date
    Mar 2003
    Location
    Traverse City, MI
    Posts
    24
    Just a suggestion, but is there a way you could throw a link label object in that datagrid cell?

  6. #6
    Join Date
    Apr 2003
    Location
    bangalore
    Posts
    31

    reply

    Just a suggestion, but is there a way you could throw a link label object in that datagrid cell?

    ........................................................................................................

    hi,

    yes, we can do that. But we cannot place linklabel directly there. We can paint it there. It is same as ordinary placing of linklabel at some position in the form. But we should take care of repaining the datagrid cell, if it is not needed. If that is done properly, then i think, it is no problem.

    But any way, the above suggestion is not correct answer to the original problem of creating hyperlink in windows forms datagrid.

    bye

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured