110,536
社区成员
发帖
与我相关
我的任务
分享
private bool BindCarAssType(string fatherID)
{
DataTable dt = mc.GetByFatherForCbb(fatherID);
if (dt.Rows.Count > 0)
{
tscbbAssType.ComboBox.DataSource = dt;
tscbbAssType.ComboBox.DisplayMember = "CategoryName";
tscbbAssType.ComboBox.ValueMember = "CategoryID";
return true;
}
else
{
tscbbAssType.ComboBox.DataSource = null;
return false;
}
}