private void BindMRP(int ViewAll, string EntityCode, string BUCode) { //MRPClass.PrintString("MRP is bind"); DataTable dtRecord = MRPClass.Master_MRP_List(ViewAll, EntityCode, BUCode); MainTable.DataSource = dtRecord; MainTable.KeyFieldName = "PK"; MainTable.DataBind(); }