This is my current code for the selecteditemchanged even handler
private void lstRent_SelectedItemChanged(object sender, EventArgs e)
{
ListViewDataItem item = lstRent.SelectedItem;
DateTime date = DateTime.Parse(item.SubItems[0].ToString());
radDate.Value = date;
}
I am trying to have it parse the date inside of the listview which is formatted as "MM/dd/yyyy" I already tested the date object it let's me parse it, but for some reason I keep getting an "Object reference not set to an instance of an object." and I have no idea what the problem is. If you guys need anymore code just let me know, and I will just upload the whole thing to github. thanks :D