Click here to Skip to main content
12,692,778 members (33,797 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
I have combobox in gridview in windows form.i added hard coded value to the combobox and i want set bydefault value to the combobox means text property, how can i do it...............please help me.........
Posted 8-Nov-12 22:51pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

I think it will help you

Change individual DataGridView row colors based on column value[^]

Thanks
Adersh Ram
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Use this:
cmb.SelectedValue ="abc"

Thanks,
Rachit
http://agarwalrachit.blogspot.in/
  Permalink  

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.170118.1 | Last Updated 9 Nov 2012
Copyright © CodeProject, 1999-2017
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