Howdy,
I'm fine with writing a GridView to a CSV file as long as there is not a HyperLinkField in my GridView. When trying to export a GridView with HyperLinkFields to a CSV, however, my HyperLinkFields simply appear blank in my CSV. I'm writing the CSV rows as such:
When I come upon a HyperLinkField cell, what property am I looking for that will write the text to the CSV? Can you give me a push in the right direction?vb.net Code:
For i As Integer = 0 To gv.Rows.Count - 1 Step 1 For j As Integer = 0 To gv.Columns.Count - 1 Step 1 sw.Write("""" & gv.Rows(i).Cells(j).Text & """") If j < gv.Columns.Count - 1 Then sw.Write(",") End If Next j sw.WriteLine() Next i
Thanks!


Reply With Quote
