Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm binding combobox column in datagridview which combo's font is zawgyi font it is not unicode.
When I choose one from this combo, first value is always showing.
What can I do? Pls, help me!
Posted
Updated 6-Mar-11 23:54pm
v2
Comments
EiThuThuWin 7-Mar-11 1:12am    
I mean, datagridview has column which column's type is combobox.
And which column is binding with datasource.
When I select one item from this combobox, first item in combo is always showing. Can't get item that I select.
Then, font of these items are zawgyi font.
Mastersev 7-Mar-11 2:10am    
please explain more, the provided explanation in not clear to the reader.
Sunasara Imdadhusen 7-Mar-11 2:13am    
Your combobox has AutoPostBack=True?
EiThuThuWin 7-Mar-11 2:50am    
no, this problem is in window application.
EiThuThuWin 7-Mar-11 2:57am    
There has 2 columns in datagridview.
The type of first column is combobox and the second is text box.
I'm binding this datagridview with table from database.
I use zawgyi-one font(not unicode) in these columns.
When I choose a item at combobox, it does not display my choose item. It means that display the first record.
How should I solve this problem? Help me!

1 solution

I think you meant to say that when you select a value from combo box, the selection goes back to first item in combox list.

If it is so, then please set the Autopostback of combo box to false. Because everytime when you will make selection, page will postback and combobox will be intialized.

Hope that helps.
 
Share this answer
 
Comments
EiThuThuWin 7-Mar-11 6:39am    
yes, there are no AutoPostBack properties in c#(window application)
what can I do?
Member 10297003 14-Nov-13 12:30pm    
Dear EiThuThu,
How do you solve that? Now I have problem like that in zawgyi font. Please! help me if you can. Thanks you.
Wild-Programmer 7-Mar-11 7:37am    
In that case check that the item index gets generated serially.
EiThuThu 8-Mar-11 0:41am    
yes, I'll try. Thanks to all.
now, I changed my new account as EiThuThu

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900