Click here to Skip to main content
12,292,006 members (65,972 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# VB VB.NET
Dear Friends kindly give me a solution of my problem

In SQL table the value is ... January
.
and the combo box value is .. January .. febaray ... march ..

during comparing the value will be the combo box selectedItem= January
Posted 26-Sep-12 2:39am
Comments
TanvirRaihan 26-Sep-12 8:41am
   
Please describe your problem properly...
source.compiler 26-Sep-12 9:08am
   
so whats your problem? wana its code?
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

dropdown.selectedItem.value= "January"

or

dropdown.selectedItem.text= "January"
  Permalink  
Comments
saleem.mukhtiar 27-Sep-12 7:44am
   
txtAccmoVid.Text = colc.Item(0).Cells(1).Value
txtAccmoVid.ReadOnly = True
cboAccomoCity.SelectedValue = colc.Item(0).Cells(2)



here is your given code ... but combo box SelectedIndex is remain -1
kindly friends help me ..
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

when i reffer comobobox.text = "January"
.
then .. another string added in the list ...
.
and i reffer selected index then .. got problem in reporting and other forms
.
so please tell me how can we check that
.
..
  Permalink  
Comments
saleem.mukhtiar 27-Sep-12 6:44am
   
txtAccmoVid.Text = colc.Item(0).Cells(1).Value
txtAccmoVid.ReadOnly = True
cboAccomoCity.SelectedValue = colc.Item(0).Cells(2)



here is your given code ... but combo box SelectedIndex is remain -1
kindly friends help me ..

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160518.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100