public static void RefreshGridMaster(ref Grid grdMaster)
    {
        Cursor.Current = Cursors.WaitCursor;
        string[]         cols = { "IsOk", "Name", "Description" };
        List <Hashtable> lst;

        lst = new List <Hashtable>();
        string[]  colTypeName = { "CheckBox", "string", "string" };
        Hashtable itm1        = new Hashtable();

        itm1.Add("IsOk", "True");
        itm1.Add("Name", "Fred");
        itm1.Add("Description", "Is the clerk behind the wall");

        lst.Add(itm1);

        Hashtable itm2 = new Hashtable();

        itm2.Add("IsOk", "False");
        itm2.Add("Name", "Alen");
        itm2.Add("Description", "Is the guy behind the vitrin");

        lst.Add(itm2);

        SourceGridHelper.Populate(ref grdMaster, cols, colTypeName, lst,
                                  Color.DarkBlue, Color.LightBlue, Color.White);

        Cursor.Current = Cursors.Default;
    }
    public static void RefreshGridDetail(ref Grid grdDetail, string loc)
    {
        Cursor.Current = Cursors.WaitCursor;
        string[]         cols = { "Item", "Value" };
        List <Hashtable> lst;

        lst = new List <Hashtable>();
        string[] colTypeName = { "string", "string" };
        if (loc == "Fred")
        {
            Hashtable itm1 = new Hashtable();
            itm1.Add("Item", "Apple");
            itm1.Add("Value", "21");
            lst.Add(itm1);

            Hashtable itm2 = new Hashtable();
            itm2.Add("Item", "Orange");
            itm2.Add("Value", "44");
            lst.Add(itm2);

            Hashtable itm3 = new Hashtable();
            itm3.Add("Item", "Grape");
            itm3.Add("Value", "44");
            lst.Add(itm3);
        }
        else
        {
            Hashtable itm2 = new Hashtable();
            itm2.Add("Item", "Melon");
            itm2.Add("Value", "54");
            lst.Add(itm2);

            Hashtable itm3 = new Hashtable();
            itm3.Add("Item", "Peach");
            itm3.Add("Value", "11");
            lst.Add(itm3);
        }
        SourceGridHelper.Populate(ref grdDetail, cols, colTypeName, lst,
                                  Color.DarkBlue, Color.LightBlue, Color.White);

        Cursor.Current = Cursors.Default;
    }