Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid update event hyperlink column

Status
Not open for further replies.

franklin1232

IS-IT--Management
Aug 29, 2001
207
US
I have a hyperlink column in my data grid. The column contains part numbers. When the user makes changes to other fields and hits update I need to capture the hyperlink column value.

In the update event this is my could
Dim strpartnum as string = e.item.cells(0).text

The strpartnum variable is always blank. The other fields are accessible from the cells collection why not the hyperlink column? The documentation on the hyperlink column class seems to show the text property is valid and should work. How can I get the part number? I am trying not to go to the underlying dataset for the value.
 
maybe you need to convert that column into a hyperlink object then read the text attribute from it? my syntax is terrible, but may be something to try.

Code:
dim h as new Hyperlink
h = ctype(e.item.cells(0),hyperlink)
str = h.text
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top