or
private void radGWOrderSelection_CreateCell(object sender, GridViewCreateCellEventArgs e) { if (e.Column.Name == "Replace") { GridViewCommandColumn dataColumn = (GridViewCommandColumn)e.Column; if (e.Row is GridDataRowElement && dataColumn != null) {
CustomGridDataCell cell = new CustomGridDataCell(e.Column, e.Row); e.CellType = typeof(CustomGridDataCell); e.CellElement = cell; cell.ButtonOne.Visibility = ElementVisibility.Hidden; cell.ButtonClick += new EventHandler(cell_ButtonClick); cell.ButtonOne.Visibility = ElementVisibility.Hidden; cell.ButtonClick += new EventHandler(cell_ButtonClick); cell.CommandButton.Dispose(); } } }


string ColumnName = "Price";GroupDescriptor descriptor1 = new GroupDescriptor();descriptor1.GroupNames.Add(ColumnName, ListSortDirection.Ascending); string formatStr = "The total sum of items {0} with price equal to {1} is equal to {2}."; descriptor1.Format = formatStr;descriptor1.Aggregates.Add("Sum('" + ColumnName + "')");this.radGridView1.GroupDescriptors.Add(descriptor1);GroupDescriptor string ColumnName = "Price";GroupDescriptor descriptor1 = new GroupDescriptor();descriptor1.GroupNames.Add(ColumnName, ListSortDirection.Ascending); string formatStr = "The total sum of items {0} with price equal to {1} is equal to {2}."; descriptor1.Format = formatStr;descriptor1.Aggregates.Add("Count('" + ColumnName + "')");this.radGridView1.GroupDescriptors.Add(descriptor1);