M
markliam
I have a ListBox that is displaying a formatted string based on the
contents of a DataSet. The purpose of the listbox is for the user to
select an entry to delete, but I'm not sure how to match the listbox
entry with the corresponding DataRow.
The DataRow contains a unique id, but the id is not displayed in the
formatted string that appears in the listbox. Is there a way to
associate the id of the DataRow with the Listbox item so I know which
DataRow id to delete based on which listbox item is selected?
contents of a DataSet. The purpose of the listbox is for the user to
select an entry to delete, but I'm not sure how to match the listbox
entry with the corresponding DataRow.
The DataRow contains a unique id, but the id is not displayed in the
formatted string that appears in the listbox. Is there a way to
associate the id of the DataRow with the Listbox item so I know which
DataRow id to delete based on which listbox item is selected?