tags:

views:

7

answers:

1

hello,

i hava a datagridwview with a datagridviewlinkcolumn and a split array with the links. How can I add this links from the array to the datagridviewlinkcolumn?

thanks

A: 

Not sure if that's what you're looking for, but you can use the add function of your datagrid to add it.

If you have only one column in your datagrid, then it would look like this


For each strLink as string in strLinks 'strLinks if your array
    gridLinks.Rows.Add(strLink)   
Next

However, I would use strongly type object and define your column with a DataPropertyName and add a datasource to your datagrid. That way you could have more than one column and rearrange without the need to change the code.

Hope that helps.

David Brunelle