I'm using this method to populate a comboBox directly from the db but when i execute i get this error: InvalidCastExce ption was unhandled.Speci fied cast is not valid.
here is the method.
private void buildcboAuthors ()
{
string strQuery = "Select k.Name as State_Name from States k where k.Name_ID=19 or k.Name_ID=17 or k.Name_ID=20 or k.Name_ID=11 or k.Komuna_ID=04" ;
...