I have 3 listboxes that are being filled with same data and from 1 store procedure call to the database.
Theorecctially, the user could selected an item from each listbox, however, when doing so, the other 2 listboxes change to have the same selected item.
Ex - If I select item A in listbox1, then listbox2 and listbox3 show their selected item as A.
Then if I go and selected item C from listbox2, listbox 1 & listbox3 change their selected item to C as well.
Does anyone know what I am doing wrong
Thanks.

listbox selected items
carlisle
http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemwindowsformsbindingcontextclassctortopic.asp
Tony
P K Agarwal
So its working properly now.
kanuhelp
Tony
iiiwabibitoiii
Dave Midgley
Here is the code - although, if I point to a copy of the list of listbox1, will I still be able to capture the value selected in listbox2 and lisbox3 to be able to send it back to the database for another query
I really don't want to have to connect to the database for each listbox, because one option allows them to have up to 10 options in the listbox and 10 calls would greatly slow performance.
Here is what I'm trying to do:
private void GetState()
{
try
{
dvState = new DataView(SqlHelper.ExecuteDataset(cnIPDAdmin, CommandType.StoredProcedure, "gsp_State").Tables[0]);
}
catch (Exception err)
{
MessageBox.Show(err.ToString() + "\n ERROR State " );
}
}//end of GetState()
private void cbxStateSqlComp_SelectedIndexChanged(object sender, System.EventArgs e)
{
if(loaded == true)
{
if(cbxStateSqlComp.SelectedIndex == 0)
gbxStateEqual.Visible = true;
selectedOp = "lbxBtwn";
lbxStateEqual1.DataSource = dvState;
lbxStateEqual1.DisplayMember = "State";
lbxStateEqual1.ValueMember = "State";
lbxStateEqual2.DataSource = dvState;
lbxStateEqual2.DisplayMember = "State";
lbxStateEqual2.ValueMember = "State";
lbxStateEqual3.DataSource = dvState;
lbxStateEqual3.DisplayMember = "State";
lbxStateEqual3.ValueMember = "State";
}
Thanks for your help on this!!