Click here to Skip to main content
11,568,522 members (43,568 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# 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 at 26-Sep-12 8:41am
   
Please describe your problem properly...
source.compiler at 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 at 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 at 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


Advertise | Privacy | Mobile
Web04 | 2.8.150624.2 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2015
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