Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TextBox combined with LinkLabel in Datagridview column

Tags:

vb.net

I have a Datagridview cell with some text in. I'd like to make just 1 word of this text into a link that will open a website but keep the remaining words as normal.

Is that possible at all?

like image 689
ChrisO Avatar asked Jan 25 '26 18:01

ChrisO


1 Answers

One way to do achieve, would be to extend the (default) DataGridViewTextBoxCell class (create a new one, inherit this behaviour) with some properties, like the cursor changing, clicking leads to opening a link if it's on the surface the link is on, etc.

like image 156
BertvanDorp Avatar answered Jan 29 '26 03:01

BertvanDorp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!