Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to add DataGridViewLinkColumn with changing text in each row, like dynamically add link text while iterating over the rows of the datagridview.

C#
 DataGridViewLinkColumn lnk = new DataGridViewLinkColumn();
                    dataGridView1.Columns.Add(lnk);
                    lnk.HeaderText = "Link Data";
                    lnk.Name = "Link Data";

foreach (DataGridViewRow row in dataGridView1.Rows)
                {  
lnk.CellTemplate.Value = sometext;
}
Posted
Updated 17-Aug-16 5:00am
v2

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