protected virtual void populateGridViewDataSource(bool reloadFromDB)
        {
            if (isValidToPopulateGridViewDataSource())
            {
                DataView dvw;
                if (reloadFromDB)
                {
                    dvw = loadGridviewDataSource();
                }
                else
                {
                    dvw = (DataView)gridview.DataSource;
                }

                dvw.RowFilter = Tools.compileQuickSearchFilter(txtQuickSearch.Text.Trim(), FieldnamesForQuickSearch.ToArray());
                setGridviewDataSource(dvw);
            }

            if (gridview.Rows.Count == 0)
            {
                btnUpdate.Enabled = false;
            }
        }