I am missing something here and getting an error. I am new to c# so please excuse the trivial question I am sure.
"System.NullReferenceException: 'Object reference not set to an instance of an object.'"
Here is the code for SelectionChanged Event
private void lvAddressTypes_SelectionChanged(object sender, Syncfusion.WinForms.ListView.Events.ItemSelectionChangedEventArgs e)
{
//========================================
// Populate textbox upon selection
//========================================
string oldAddressType = (lvAddressTypes.SelectedItems[0] as dsBigTopERP.tbl_AddressTypeRow).AddressTypeText.ToString();
txtAddAddressType.Text = oldAddressType;
}
Tried to follow this sample code posted here in the above code.
string Sele��o = (sfListView1.SelectedItems[0] as USState).LongName.ToString();
MessageBox.Show(Sele��o);