Click to See Complete Forum and Search --> : creating hyperlink in a datagrid cell


raghavkotha
May 5th, 2003, 05:47 AM
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

mahanare
May 6th, 2003, 01:11 AM
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/ASP.NET/CreatingEventsCSharp.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

mahanare
May 6th, 2003, 01:30 AM
for your info..
I searched in google with the key word

"windows forms datagrid in c#"

it seems lot of help is available.

raghavkotha
May 7th, 2003, 01:03 PM
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

theday_99
May 7th, 2003, 01:55 PM
Just a suggestion, but is there a way you could throw a link label object in that datagrid cell?

raghavkotha
May 7th, 2003, 09:24 PM
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