i want add column datagrid, , display text "view details" in each row, underlined hyperlink. tried add link column , using text property & .usecolumntextforlinkvalue true, not working me:
public class form1 private sub form1_load(sender object, e eventargs) handles mybase.load call addlinkcolumn() end sub private sub addlinkcolumn() dim links new datagridviewlinkcolumn() links .text = "view details" .usecolumntextforlinkvalue = true .headertext = "address" .activelinkcolor = color.white .linkbehavior = linkbehavior.systemdefault .linkcolor = color.blue .trackvisitedstate = true .visitedlinkcolor = color.yellowgreen end datagridview1.columns.add(links) end sub end class
what doing wrong, or there other option display text in rows ? click on text open linked paths datagrid records on pc.
nothing wrong code, when start typing in datagrid, link text appears in cells. doesn't when datagrid empty, that's all. sorry posting, didn't knew that.
Comments
Post a Comment