Display Hyperlink field on rows based on value from the database

487 Views Asked by At

How do I dynamically display the 'Edit' on the hyperlink field based on the values on the rows, generated from the database.

N/B.: the gridview automatically generates rows.

1

There are 1 best solutions below

2
On

Do you mean you want a DataGridViewLinkColumn in the grid with Edit displayed if appropriate? Like this:

enter image description here

In which case, make the whole column a LinkColumn and whether or not it's clickable will be taken care of internally by the grid. Columns which don't display Edit will not be clickable.

If you don't mean this then please provide more detail.