Hi,
I have a form with a combo box... I have a label that is bound to a column that displays info based on whats selected in the combo.
It looks fine when I first load the form. When I change the index of the CBO the text of the label stays the same. I know I need to write code to do this in the SelectedIndexChanged event of the CBO
but im struggling. Its weird because I have written loads of fancy data code and its all working... these seemingly simple task has really got me fluffed. Can someone tell me how once the index is changed in the CBO, I can get the label's text property to change appropriately to that of the value it should be? Pace
Thanks!
edit: Please note that I am using the .net 2.0 framework for this project.
-
-
You may also want to look into using the AutoPostBack feature of your combobox....if you're doing this in ASP.NET
-
Is it a Windows Form or Web Form ? (if webform: remember correct if(!IsPostBack) handling.
Do you use Bindinglist/BindingSource?
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.