예제 #1
0
		private void btnNewGroupRow_Click(object sender, System.EventArgs e)
		{
			GridEXCustomGroupRow groupRow = new GridEXCustomGroupRow();

			this.CustomGroup.GroupRows.Add(groupRow);
			groupRow.GroupCaption = MainQD.GetCustomGroupRowName(this.CustomGroup.GroupRows, "Custom GroupRow ", 0);

			this.grdGroupRows.Refetch();
			this.grdGroupRows.MoveLast();

		}
예제 #2
0
		private void grdGroupRows_SelectionChanged(object sender, System.EventArgs e)
		{
			if (this.grdGroupRows.Row >= 0)
			{
                this.SelectedCustomGroupRow = (GridEXCustomGroupRow)this.grdGroupRows.GetRow().DataRow;
			}
			else
			{
				this.SelectedCustomGroupRow = null;
			}
		}
예제 #3
0
		private void btnMoveDown_Click(object sender, System.EventArgs e)
		{
			if (this.SelectedCustomGroupRow != null)
			{
				int index = this.SelectedCustomGroupRow.Index;
				GridEXCustomGroupRow groupRow = this.SelectedCustomGroupRow;

				this.CustomGroup.GroupRows.RemoveAt(index);

				this.CustomGroup.GroupRows.Insert(index + 1, groupRow);
				this.grdGroupRows.Refetch();
				this.grdGroupRows.MoveTo(index + 1);
			}
		}
        private void button2_Click(object sender, System.EventArgs e)
        {
            GridEXCustomGroup customGroup = new GridEXCustomGroup();
            GridEXCustomGroupRow groupRow;
            groupRow = new GridEXCustomGroupRow("Owner", this.gridEX1.RootTable.Columns["ContactTitle"], "Owner");
            groupRow.ShowWhenEmpty = true;
            customGroup.GroupRows.Add(groupRow);

            groupRow = new GridEXCustomGroupRow("Other");
            groupRow.Condition = new GridEXFilterCondition(gridEX1.RootTable.Columns["ContactTitle"], ConditionOperator.NotEqual, "Owner");
            groupRow.ShowWhenEmpty = true;
            customGroup.GroupRows.Add(groupRow);

            this.gridEX1.RootTable.Groups.Clear();
            GridEXGroup group = new GridEXGroup(customGroup);
            group.GroupPrefix = "Contact Title:";
            group.HeaderCaption = "Contact Title";
            this.gridEX1.RootTable.Groups.Add(group);
            this.gridEX1.GetRow(0).Expanded = true;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            GridEXCustomGroup customGroup = new GridEXCustomGroup();

            GridEXCustomGroupRow groupRow;
            groupRow = new GridEXCustomGroupRow("US Customers",this.gridEX1.RootTable.Columns["Country"],"USA");
            groupRow.ShowWhenEmpty = true;
            customGroup.GroupRows.Add(groupRow);

            groupRow = new GridEXCustomGroupRow("Foreign Customers");
            groupRow.Condition = new GridEXFilterCondition(gridEX1.RootTable.Columns["Country"], ConditionOperator.NotEqual, "USA");
            groupRow.ShowWhenEmpty = true;
            customGroup.GroupRows.Add(groupRow);

            this.gridEX1.RootTable.Groups.Clear();
            GridEXGroup group = new GridEXGroup(customGroup);
            group.HeaderCaption = "US and foreign customers";
            this.gridEX1.RootTable.Groups.Add(group);
            this.gridEX1.GetRow(0).Expanded = true;
        }
        private void button2_Click(object sender, System.EventArgs e)
        {
            GridEXCustomGroup    customGroup = new GridEXCustomGroup();
            GridEXCustomGroupRow groupRow;

            groupRow = new GridEXCustomGroupRow("Owner", this.gridEX1.RootTable.Columns["ContactTitle"], "Owner");
            groupRow.ShowWhenEmpty = true;
            customGroup.GroupRows.Add(groupRow);

            groupRow               = new GridEXCustomGroupRow("Other");
            groupRow.Condition     = new GridEXFilterCondition(gridEX1.RootTable.Columns["ContactTitle"], ConditionOperator.NotEqual, "Owner");
            groupRow.ShowWhenEmpty = true;
            customGroup.GroupRows.Add(groupRow);

            this.gridEX1.RootTable.Groups.Clear();
            GridEXGroup group = new GridEXGroup(customGroup);

            group.GroupPrefix   = "Contact Title:";
            group.HeaderCaption = "Contact Title";
            this.gridEX1.RootTable.Groups.Add(group);
            this.gridEX1.GetRow(0).Expanded = true;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            GridEXCustomGroup customGroup = new GridEXCustomGroup();

            GridEXCustomGroupRow groupRow;

            groupRow = new GridEXCustomGroupRow("US Customers", this.gridEX1.RootTable.Columns["Country"], "USA");
            groupRow.ShowWhenEmpty = true;
            customGroup.GroupRows.Add(groupRow);

            groupRow               = new GridEXCustomGroupRow("Foreign Customers");
            groupRow.Condition     = new GridEXFilterCondition(gridEX1.RootTable.Columns["Country"], ConditionOperator.NotEqual, "USA");
            groupRow.ShowWhenEmpty = true;
            customGroup.GroupRows.Add(groupRow);

            this.gridEX1.RootTable.Groups.Clear();
            GridEXGroup group = new GridEXGroup(customGroup);

            group.HeaderCaption = "US and foreign customers";
            this.gridEX1.RootTable.Groups.Add(group);
            this.gridEX1.GetRow(0).Expanded = true;
        }