A
akunuri.swapna
Hi All - I have a checkedListBox in my form. I am adding items to it at
run time. However I also need to check the items depending on a
condition. I have tried a lot but cant get the added item to check.
Here is my code.
Dim objdb As New clsDB
PaymentOptions = objdb.GetPaymentOptionsByProductID
Dim objrowPaymentOptions As DataRow
For Each objrowPaymentOptions In PaymentOptions.Tables(0).Rows
Dim string1 as string =
CType(objrowPaymentOptions.Item("is_default"), String)
checkedListBox1.Items.Add(CType(objrowPaymentOptions.Item("new_item"),
String))
If string1 = "Y" Then
..............Code to check the item added above......
End If
next
I hope you got my question.
Anyone please help.
Thanks
Riaz
run time. However I also need to check the items depending on a
condition. I have tried a lot but cant get the added item to check.
Here is my code.
Dim objdb As New clsDB
PaymentOptions = objdb.GetPaymentOptionsByProductID
Dim objrowPaymentOptions As DataRow
For Each objrowPaymentOptions In PaymentOptions.Tables(0).Rows
Dim string1 as string =
CType(objrowPaymentOptions.Item("is_default"), String)
checkedListBox1.Items.Add(CType(objrowPaymentOptions.Item("new_item"),
String))
If string1 = "Y" Then
..............Code to check the item added above......
End If
next
I hope you got my question.
Anyone please help.
Thanks
Riaz