Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my sample code is
SQL
dtStudentdept = ObjBc.StudentDept()
      gcStudentDetails.DataSource = dtStudentdept


      For Each Item As String In Me.dtStudentdept.GetCheckedItems
          Me.ChkDept.Items.Add("Mca")
          Me.ChkDept.SelectAllItemCaption = 0
      Next


i cant able to develop further because it shows error that GetCheckedItems is not a memeber.what can i declare otherwise.to show the list.
Posted
Comments
[no name] 29-Apr-14 12:27pm    
You would need to consult the documentation for whatever a "Checkedcombobox" control is.

1 solution

GetCheckedItems is not a memeber
The error message says directly what is wrong. GetCheckedItems is not a member of CheckedComboBox.

Some information you'll find here: CheckedCombobox Control[^]

If you would like to pass the list of checked items to the stored procedure, the only way is to pass input parameter[^] (VARCHAR data type) as a list of comma separated items, then you'll be able to use it in SP. For further information, please see OriginalGriff's tip: Using comma separated value parameter strings in SQL IN clauses[^].

More:
How to call SQL Server stored procedures in ASP.NET by using Visual Basic .NET[^]
How to: Use Parameters in Stored Procedures and User-Defined Functions [^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900