Click here to Skip to main content
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 3: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
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,665


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 26 Sep 2012
Copyright © CodeProject, 1999-2014
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