Click here to Skip to main content
15,886,689 members
Home / Discussions / C#
   

C#

 
AnswerRe: Check Database Connectivity... Pin
MarkB77716-Jul-09 20:05
MarkB77716-Jul-09 20:05 
AnswerRe: Check Database Connectivity... Pin
PIEBALDconsult17-Jul-09 4:54
mvePIEBALDconsult17-Jul-09 4:54 
Questionhow to run .NET applications with mono Pin
Member 305788716-Jul-09 19:37
Member 305788716-Jul-09 19:37 
AnswerRe: how to run .NET applications with mono Pin
Manas Bhardwaj16-Jul-09 21:50
professionalManas Bhardwaj16-Jul-09 21:50 
QuestionNewbie question Pin
woofie16-Jul-09 19:26
woofie16-Jul-09 19:26 
AnswerRe: Newbie question Pin
benjymous17-Jul-09 0:04
benjymous17-Jul-09 0:04 
AnswerRe: Newbie question Pin
Baeltazor18-Jul-09 1:00
Baeltazor18-Jul-09 1:00 
QuestionUpdating bound DataSource does not update ComboBox Items. Pin
richmcc16-Jul-09 16:34
richmcc16-Jul-09 16:34 
I am binding a <list> to a ComboBox. Once an Item is chosen I want it to be marked so the next time the list is displayed the user can see that the item was previously selected. I update the item in the datasource and even rebind the datasource. However, the changes are not reflected in the list. When I look at the combobox in VS debugger, it shows the changes in the DataSource property but not the non-public innerlist property.

How I bind the combobox to the original list.
 public void IntializeGroupComboBox()<br />
        {<br />
<br />
            areaGroups = areaGroups.ReadGroups();<br />
<br />
            //Create a dummy group to hold Initial text<br />
            NaGroup ng = new NaGroup();<br />
<br />
            ng.GroupName = "Select Group";<br />
            areaGroups.gList.Insert(0, ng);<br />
            <br />
<br />
            //Populate the list with the group names.<br />
            foreach (NaGroup nag in areaGroups.gList)<br />
            {<br />
              grpName.Add(nag.GroupName);<br />
            }<br />
            <br />
            //binds the list to the combo box<br />
            groupCombBox.DataSource = grpName;<br />
        }


My Attempt at updating the items in the combobox.

int grp_index = grpName.FindIndex(is_selected_group);<br />
<br />
          grpName[grp_index] =groupCombBox.SelectedItem.ToString() + " ORD";<br />
<br />
                groupCombBox.DataSource = grpName;


I noticed that a couple of people have asked this question before but no replies. I would appreciate any reply, if it is only to tell me where I might find the solution.
QuestionWindow Body From Handle Pin
hpydir16-Jul-09 16:17
hpydir16-Jul-09 16:17 
AnswerRe: Window Body From Handle Pin
MarkB77716-Jul-09 19:59
MarkB77716-Jul-09 19:59 
QuestionForm events taking precedence over control events and forwarding events? Pin
Megidolaon16-Jul-09 12:43
Megidolaon16-Jul-09 12:43 
QuestionRe: Form events taking precedence over control events and forwarding events? Pin
DaveyM6916-Jul-09 13:55
professionalDaveyM6916-Jul-09 13:55 
AnswerRe: Form events taking precedence over control events and forwarding events? Pin
Luc Pattyn16-Jul-09 13:57
sitebuilderLuc Pattyn16-Jul-09 13:57 
JokeRe: Form events taking precedence over control events and forwarding events? Pin
DaveyM6916-Jul-09 14:09
professionalDaveyM6916-Jul-09 14:09 
AnswerRe: bizar mouse event question Pin
Luc Pattyn16-Jul-09 13:55
sitebuilderLuc Pattyn16-Jul-09 13:55 
AnswerRe: Form events taking precedence over control events and forwarding events? Pin
Super Lloyd16-Jul-09 14:05
Super Lloyd16-Jul-09 14:05 
GeneralRe: Form events taking precedence over control events and forwarding events? [modified] Pin
Megidolaon17-Jul-09 5:00
Megidolaon17-Jul-09 5:00 
QuestionDifferent settings for development vs. production Pin
jaminblount16-Jul-09 11:51
jaminblount16-Jul-09 11:51 
AnswerRe: Different settings for development vs. production Pin
Pete O'Hanlon16-Jul-09 12:25
mvePete O'Hanlon16-Jul-09 12:25 
QuestionInterface Ibindinglist : Specified argument was out of the range error Pin
baranils16-Jul-09 11:33
baranils16-Jul-09 11:33 
AnswerRe: Interface Ibindinglist : Specified argument was out of the range error Pin
baranils17-Jul-09 21:41
baranils17-Jul-09 21:41 
QuestionDatagrid row select help Pin
Member 640383816-Jul-09 10:21
Member 640383816-Jul-09 10:21 
Question64 bit connection strings Pin
Natza Mitzi16-Jul-09 8:55
Natza Mitzi16-Jul-09 8:55 
AnswerRe: 64 bit connection strings Pin
Paladin200016-Jul-09 10:14
Paladin200016-Jul-09 10:14 
GeneralRe: 64 bit connection strings Pin
Natza Mitzi16-Jul-09 20:36
Natza Mitzi16-Jul-09 20:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.