Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to retreive this columns values from database in combobox but it showing error
Syntax error converting the varchar value 'System.Data.DataRowView' to a column of data type int
Posted
Comments
[no name] 8-Aug-14 7:53am    
Obviously because 'System.Data.DataRowView' is not an integer.

1 solution

Try specifying the column containing the value you are interested in: http://msdn.microsoft.com/en-us/library/f2s8fa75(v=vs.110).aspx[^] or http://msdn.microsoft.com/en-us/library/0k5w061k(v=vs.110).aspx[^] will probably help...
 
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