Hey!
I have a listbox like so:
list.DataSource = bindingSource; list.DisplayMember = "column_name";
Later I would want to get the selected item's ID from the DataSet with bindingSource.Current. I've done this before with bindingNavigator+bindingSource, Current returns a DataRowView, so I can cast it and I'm done:
Int32.Parse(((DataRowView)bindingSource.Current)["id"].ToString())
But in this case Current returns a DataViewManagerListItemTypeDescriptor object, and I can't cast it.
Any thoughts will be appreciated!
Daniel