Esempio n. 1
0
        public void ProvisionData()
        {
            dv = new DataView(packDT);
            //refresh the datasource
            PackGV.DataSource = dv;
            var grouper = new Subro.Controls.DataGridViewGrouper(PackGV);

            grouper.SetGroupOn("Logic");
        }
Esempio n. 2
0
        private void FormDataGridViewGrouper_Load(object sender, EventArgs e)
        {
            // TODO:  這行程式碼會將資料載入 'sSODataSet.SAO_SA_ORDR' 資料表。您可以視需要進行移動或移除。
            this.mSAO_SA_ORDRTableAdapter.Fill(this.mSSODataSet.SAO_SA_ORDR);

            //the component can be added in designer, or as done here on the fly
            var grouper = new Subro.Controls.DataGridViewGrouper(dataGridView1);

            grouper.SetGroupOn("SAO_ORDR_TYP");

            //to customize the grouping display, you can attach to the DisplayGroup event:
            grouper.DisplayGroup += grouper_DisplayGroup;
        }
Esempio n. 3
0
        private void AgruparListaEmpleados(bool Valor)
        {
            if (Valor == true)
            {
                grupperListaEmpleados.RemoveGrouping();
                grupperListaEmpleados.SetGroupOn("Pais");
                grupperListaEmpleados.Options.ShowGroupName  = false;
                grupperListaEmpleados.Options.GroupSortOrder = System.Windows.Forms.SortOrder.None;
                dataGridView1.Columns["Pais"].Visible        = false;

                dataGridView1.RowHeadersVisible = false;
                dataGridView1.ClearSelection();
            }
            else
            {
                grupperListaEmpleados.RemoveGrouping();
                dataGridView1.RowHeadersVisible       = true;
                dataGridView1.Columns["Pais"].Visible = true;
            }
        }