Xoggg
Xoggg
CC#
Created by Xoggg on 4/9/2023 in #help
❔ Copying selected item from list box to another list box (Utilizing data source)
For my school assignment, most definitely. I dont ever see myself needing to utilize DataSources in the future honestly.
18 replies
CC#
Created by Xoggg on 4/9/2023 in #help
❔ Copying selected item from list box to another list box (Utilizing data source)
foreach (DataRowView selectedItem in listBox3.SelectedItems)
{
DataRowView dr = (DataRowView)selectedItem;
String result = dr["itemName"].ToString();
listBox4.Items.Add(result);
}
foreach (DataRowView selectedItem in listBox3.SelectedItems)
{
DataRowView dr = (DataRowView)selectedItem;
String result = dr["itemName"].ToString();
listBox4.Items.Add(result);
}
Yes, it did thank you. This was how I implemented the solution.
18 replies
CC#
Created by Xoggg on 4/9/2023 in #help
❔ Copying selected item from list box to another list box (Utilizing data source)
Makes since.
18 replies
CC#
Created by Xoggg on 4/9/2023 in #help
❔ Copying selected item from list box to another list box (Utilizing data source)
I never think about casting in C#, I usually only work with simple data types.
18 replies
CC#
Created by Xoggg on 4/9/2023 in #help
❔ Copying selected item from list box to another list box (Utilizing data source)
let me give this a shot.
18 replies
CC#
Created by Xoggg on 4/9/2023 in #help
❔ Copying selected item from list box to another list box (Utilizing data source)
Ah I see
18 replies
CC#
Created by Xoggg on 4/9/2023 in #help
❔ Copying selected item from list box to another list box (Utilizing data source)
Correct on the winforums portion; If I were to cast to DataRowView, would I then have access to the properties of that row (In this case the colums of my MDF database table)?
18 replies