i wan to create a table to show my sales report in vb,but we are not allowed to use datagridview what type of form we can use to show our sales report without using datagridview...?

you can use listview,,

here is how to populate the columns with headers something like this

ListView3.Columns.Add("NAME", 150, HorizontalAlignment.Left)
        ListView3.Columns.Add("SCREEN NAME", 150, HorizontalAlignment.Left)
        ListView3.Columns.Add("LOCATION", 150, HorizontalAlignment.Left)
        'ListView3.Columns.Add("DEDSCRIPTION ?", 50, HorizontalAlignment.Left)
        ListView3.Columns.Add("URL", 100, HorizontalAlignment.Left)
        ListView3.Columns.Add("FOLLOWERS", 100, HorizontalAlignment.Left)
        ListView3.Columns.Add("FRIENDS", 100, HorizontalAlignment.Left)
        'ListView3.Columns.Add("FOLLOWING", 60, HorizontalAlignment.Left)
        ListView3.Columns.Add("MESSAGES SENT", 100, HorizontalAlignment.Left)

and you can add data to the listview something like this

Dim ScreenName As System.Xml.XmlNodeList = doc.GetElementsByTagName("screen_name")
            Dim location As System.Xml.XmlNodeList = doc.GetElementsByTagName("location")
            Dim Str2 As String = ""
            Dim Str3 As String = ""


            For Each node In doc.DocumentElement.SelectNodes("//user")
                ' Str2 = node.Item("location").InnerText
                'Str3 = node.Item("screen_name").InnerText
                Dim str(7) As String
                Dim itm As ListViewItem



                str(0) = node.Item("name").InnerText
                str(1) = node.Item("screen_name").InnerText
                str(2) = node.Item("location").InnerText
                ' str(3) = node.Item("description").InnerText
                str(3) = node.Item("url").InnerText
                str(4) = node.Item("followers_count").InnerText
                str(5) = node.Item("friends_count").InnerText
                ' str(6) = node.Item("following").InnerText
                str(6) = node.Item("statuses_count").InnerText
                'profile_image_url



                itm = New ListViewItem(str)
              
                                            ListView3.Items.Add(itm)

T_Tthanks alot~!!its help me alot...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.