Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
can i place four links in a single cell of a datagridview in c# windows


Please help me...

Thank you.

What I have tried:

I tried various ways to add the links colomn to datagridview,like by adding datagridviewlinkcolumn etc.But it seems that cell would take only single link .

Can i get the situation where i can insert four links into a single cell, and similarly in the whole colomn, more than one link.
Posted
Updated 22-Jun-16 5:00am

That's right, because a singly link is a natural and clear thing.

You can go out of this limitation if you develop your own cell type derived from DataGridViewCell. I'm not sure that such UI element would be practically reasonable; you decide.

—SA
 
Share this answer
 
Comments
Maciej Los 22-Jun-16 10:29am    
5ed!
Sergey Alexandrovich Kryukov 22-Jun-16 10:38am    
Thank you, Maciej.
—SA
harichander 22-Jun-16 10:41am    
But i am not getting how to achieve this...
Sergey Alexandrovich Kryukov 22-Jun-16 10:46am    
What is unclear? You are the designer of the code, you know the goal, you are the one to decide what a cell should do. All the inner behavior of the cell is up to you. I only say how you can embed your code in available DataGridView. Are you getting it? You can add your own cell type to a DataGridView instance exactly as any other cell. (You may also need to define your column type which should have cells of your type.) The features of the cell type itself is not something you may or may not "get", this is something you have to develop in your own way.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900