1 Replies - 268 Views - Last Post: 10 March 2013 - 11:12 PM Rate Topic: -----

#1 jendrick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 07-March 13

Index out of range

Posted 10 March 2013 - 11:01 PM

Hi,

I'm having error message :Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

I'm trying to get the value in datagridview from combobox.

this is my code:

  Dim colcount As Integer
        colcount = srchtbl.ColumnCount
        MsgBox(colcount)
        For j = 0 To colcount
            If (Trim(ComboBox1.Text) = Trim(srchtbl.Item(1, j).Value)) Then
                MsgBox("value found", 0)
            End If
        Next



Is This A Good Question/Topic? 0
  • +

Replies To: Index out of range

#2 jendrick  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 07-March 13

Re: Index out of range

Posted 10 March 2013 - 11:12 PM

Hey,

I got the solution. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1