We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

LinkLabel in Cell in Winforms grid

Thread ID:

Created:

Updated:

Platform:

Replies:

30946 Jun 28,2005 03:10 AM Apr 4,2018 11:57 AM Windows Forms 3
loading
Tags: GridControl
Geir Aamodt
Asked On June 28, 2005 03:10 AM

I''m trying to use an standard Windows LinkLabel in a cell. But I need to click in the cell before the pointer turns into an hand and I can activate the link in the cell (which does not go to an web page). Please see example code: LinkLabel lnkLabel = new LinkLabel(); lnkLabel.Text = "SomeText"; lnkLabel.BackColor = Color.White; lnkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkLabel_LinkClicked); lnkLabel.Links[0].LinkData = someData; theGrid[x,y].Control = lnkLabel; Any tips on how to solve this? I need to handle the click event in my code since it does not fire of a web page. Regards, Geir

Administrator [Syncfusion]
Replied On June 28, 2005 04:53 AM

To get the proper mouse interaction with the link cell, I think you will have to use the technique shown in this sample. \Syncfusion\Essential Studio\3.2.1.0\Windows\Grid.Windows\Samples\CellTypes\LinkLabelCells You can copy the LinkLabelCell file to your project and just use teh custom cell type to have support for a link cell. Then if you do not want to lauch teh browser, you can comment out this line: //LaunchBrowser(style); in teh OnMouseUp override in the LinkLabelCellRenderer class. Then you can handle the grid.CellClick event to catch the click and act on it.

Narasimha Prasad
Replied On April 4, 2018 04:28 AM

doing poc

Arulpriya Ramalingam [Syncfusion]
Replied On April 4, 2018 11:57 AM

Hi Narasimha, 
 
Thanks for the update, please provide the details of your requirement, if you need any technical assistance on this. 
 
Regards, 
Arulpriya 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;