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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

LinkLabel in Cell in Winforms grid

Thread ID:





30946 Jun 28,2005 07:10 AM UTC Apr 4,2018 03:57 PM UTC WinForms 3
Tags: GridControl
Geir Aamodt
Asked On June 28, 2005 07:10 AM UTC

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 08:53 AM UTC

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\\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 08:28 AM UTC

doing poc

Arulpriya Ramalingam [Syncfusion]
Replied On April 4, 2018 03:57 PM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon