i write this code to know if the combobox= any item in dataset.table("exemple") but is false what can i doing
can you help me
code:
For i As Integer = 0 To ds.Tables("ligne").Rows.Count - 1
If ComboBox6.SelectedItem = ds.Tables("ligne").Rows(i)
.....................

i would restore a database please simple code

>ahlam

What? - Clearly state a phrase describing the problem as the thread's title. Rule member rules - http://www.daniweb.com/forums/faq.php?faq=daniweb_policies

For i As Integer = 0 To ds.Tables("ligne").Rows.Count - 1
   If ComboBox6.SelectedValue=ds.Tables("ligne").Rows(i)("columnname1") Then
   ..
  End If
Next
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.