Datatridview with linklabel

F

Frederik

Hi all,

I know there is a possibility to add a DataGridViewLinkColumn as a
type of column to a DataGridView. Is this type of column having a
LinkLabel inside? Why do I ask: I have linklabels (partly containing
text, partly containing links --> as is possible with the LinkArea
property of a LinkLabel) that I would like to add to a DataGridView or
ListView. Is this possible with the DataGridViewLinkColumn or do I
need a different approach?

Kind regards / Met vriendelijke groeten / Bien à vous,
Frederik Aerts
 
N

Nicholas Paldino [.NET/C# MVP]

Frederik,

From what I can tell, the DataGridViewLinkCell doesn't template the
control like the DataGridViewTextBox cell, or other controls. Meaning, it
doesn't create a LinkLabel and then host that in the cell. You can create
your own cell/column classes that do this, if you want, though.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi all,

I know there is a possibility to add a DataGridViewLinkColumn as a
type of column to a DataGridView. Is this type of column having a
LinkLabel inside? Why do I ask: I have linklabels (partly containing
text, partly containing links --> as is possible with the LinkArea
property of a LinkLabel) that I would like to add to a DataGridView or
ListView. Is this possible with the DataGridViewLinkColumn or do I
need a different approach?

Kind regards / Met vriendelijke groeten / Bien à vous,
Frederik Aerts
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top