Exemple #1
0
    private void LoadDistricts()
    {
        string regioncode = cboAreas.SelectedValue.ToString();
        string name       = txtSearch.Text.Trim();
        bool   Isactive   = chkIsactive.Checked;

        dataTable = datafile.GetDistricts(regioncode, name, Isactive);
        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 District found", true);
        }
    }