Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27411

VS 2010 How to filter apostrophes and dollar (' stud $') signs for ListView

$
0
0
Hi guys,

When accessing a workbook, I'd like to be able to select the desired sheet and chart data from it. Now, I have modified a few snippets to look like this:

Code:

Dim conn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & TextBox1.Text & ";Extended Properties=""Excel 12.0 Xml;HDR=YES"";")
        conn.Open()

        Dim dtSheets As DataTable = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, Nothing)
        Dim SheetRows As DataRow


        For Each SheetRows In dtSheets.Rows
            ListView1.Items.Add(SheetRows("TABLE_NAME").ToString)
        Next

        conn.Close()

However, the display shows the (' stuff $') rather than just (stuff). How do go around this? I've sifted tons of links but got nowhere near except for some very different topics.

Thanks guys!

Viewing all articles
Browse latest Browse all 27411


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>