Results 1 to 4 of 4

Thread: Screen Pictur is Attached

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    141

    Angry Screen Pictur is Attached

    Code:
    public bool PopList(ListBox cbo ,DataSet ds, int Datasets_Table_Index, string _DisplayMember,string _ValueMember)
    {
    try
    {
    	List.DataSource = ds.Tables[Datasets_Table_Index];
    	List.DisplayMember = _DisplayMember;
    	List.ValueMember = _ValueMember;
    return true;
    }
    catch(Exception e)
    {
    MessageBox.Show(e.ToString());
    return false;
    }		
    }
    we have two listbox
    one listbox fill from database use that function
    when we select item from first listbox and add Second listbox

    use this
    lstSelectedBen.Items.Add(lstAvailBen.SelectedItem);
    system show messsage
    System.Data.DataRow
    nothng list item

    Plzzzzz help me





    Edit: Added [code][/code] tags for clarity. - Hack
    Attached Images Attached Images  
    Last edited by Waseemalisyed; Jan 2nd, 2006 at 11:57 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width