请帮我纠正这个,我得到(NullReferenceException
)应用数据表以组合框在WPF
型“System.NullReferenceException”的异常出现在HMCS.exe但没有处理错误用户代码”
代码隐藏 -
dt = oBALSubLocation.SelectLocation(oBOSubLocation);
cmbSubLocation.ItemsSource = dt;
UI -
<ComboBox x:Name="cmbSubLocation" HorizontalAlignment="Left" Margin="256,41,0,-6" VerticalAlignment="Top" Width="108" Height="26" FontSize="13" />
UI - <组合框X:NAME = “cmbSubLocation” HorizontalAlignment =“Left”Margin =“256,41,0,-6”VerticalAlignment =“Top”Width =“108”Height =“26”FontSize =“13”/> – Malshan
纠正什么?你有错误吗?某种意想不到的结果? –
是的我得到错误'在HMCS.exe中发生类型'System.NullReferenceException'的异常,但没有在用户代码中处理' – Malshan