private void LoadPayTypes() { dataTable = datafile.GetPaymentTypes(); DataGrid1.CurrentPageIndex = 0; DataGrid1.DataSource = dataTable; DataGrid1.DataBind(); if (dataTable.Rows.Count > 0) { MultiView3.ActiveViewIndex = 0; ShowMessage(".", true); } else { //MultiView3.ActiveViewIndex = -1; //CallDistrictform(); ShowMessage("No Payment Type found", true); } }