private void LoadData(PartDataSet pdata)
{
if (pdata.Tables[0].Rows[0]["Description"].ToString() != "")
Description_txt.Text = pdata.Tables[0].Rows[0]["Description"].ToString();
if (pdata.Tables[0].Rows[0]["PMT"].ToString() != "")
type_cbo.SelectedText = pdata.Tables[0].Rows[0]["PMT"].ToString();
if (pdata.Tables[0].Rows[0]["IUM"].ToString() != "")
uomclass_cbo.SelectedText = pdata.Tables[0].Rows[0]["IUM"].ToString();
if (decimal.Parse(pdata.Tables[0].Rows[0]["NetWeight"].ToString()) != 0)
NetWeight.Value = decimal.Parse(pdata.Tables[0].Rows[0]["NetWeight"].ToString());
if (pdata.Tables[0].Rows[0]["NetWeightUOM"].ToString() != "")
uomweight_cbo.SelectedText = pdata.Tables[0].Rows[0]["NetWeightUOM"].ToString();
trackserial.Checked = bool.Parse(pdata.Tables[0].Rows[0]["TrackSerialNum"].ToString());
qtybearing.Checked = bool.Parse(pdata.Tables[0].Rows[0]["QtyBearing"].ToString());
phantom_chk.Checked = bool.Parse(pdata.Tables[0].Rows[0]["PhantomBOM"].ToString());
userevision.Checked = bool.Parse(pdata.Tables[0].Rows[0]["UsePartRev"].ToString());
//Cannot change UOM after initial save, will cause all sorts of problems
uom_cbo.Enabled = false;
planner_cbo.Enabled = false;
}