or
| pRadGridView.MasterGridViewTemplate.GroupByExpressions.Add("Something1 as Brand format \"{1} - \",sum(Price) as TotalPrice format \"{1} €\" Group By Something1"); |
| pRadGridView.MasterGridViewTemplate.GroupByExpressions.Add("Something2 as Size format \"{1} - \",sum(Price) as TotalPrice format \"{1} €\" Group By Something2"); |
| pRadGridView.MasterGridViewTemplate.GroupByExpressions.Add("Something3 as DontCare format \"{1} - \",sum(Price) as TotalPrice format \"{1} €\" Group By Something3"); |
| GridViewDataColumn Price_Column = new GridViewDataColumn("Price", "Price"); |
| Price_Column.HeaderText = "Prices"; |
| Price_Column.FormatString = "{0:N2}"; |
| Price_Column.IsVisible = false; |
| Price_Column.DataType = typeof(decimal); |
| pRadGridView.MasterGridViewTemplate.Columns.Add(Price_Column); |
| // subTotal is a sum a other columns, and it's int value :) |
| row.Cells["Price"].Value = subTotal * Math.Round(StreetPriceEuro, 2); |
| // Custom expanders colors |
| if (pGridCellElement.RowInfo is GridViewGroupRowInfo && pGridCellElement.RowElement is GridGroupHeaderRowElement) |
| { |
| int level = ((GridViewGroupRowInfo)pGridCellElement.RowInfo).Group.Level; |
| if (level == 3) pGridCellElement.ForeColor = Color.FromArgb(31, 71, 79); |
| if (level == 4) pGridCellElement.ForeColor = Color.FromArgb(50, 115, 128); |
| if (level == 5) pGridCellElement.ForeColor = Color.FromArgb(70, 161, 179); |
| pGridCellElement.HorizontalLineColor = pGridCellElement.ForeColor; |
| return; |
| } |
Thanks!
bool setFocusTogridView = true;
foreach (Form form in Application.OpenForms)
{
if (form.GetType() == typeof(ConditionalFormattingForm))
{
form.TopMost = true;
form.Focus();
setFocusTogridView = false;
break;
}
}
if(setFocusTogridView)
this.gridView.Focus();
Please let me know if there is some solution for this problem.
I am using Telrik version 8.2.0.0.
Regards,
Renu
RadButtonPar_Start.ThemeName =
"Startbutton"
RadButtonPar_Stop.ThemeName = "Stopbutton"
Thanks in advance!
.MasterGridViewTemplate.LoadFrom(command.ExecuteReader())
In the old VB6 ListView one can set the "Checkboxes" property to True and have checkboxes appear.