문제

When i group be default the radgridview by Telerik The name of the column and the value of the cell are put it like the title of the Group

{Column Title}: {Cell Value}

enter image description here

But I need to change that to have just the {Cell Value}

Is any way to do that with C#?

도움이 되었습니까?

해결책

If you're talking about removing the pre-fixed column names from the values after grouping, you can subscribe to the GroupSummaryEvaluateevent, and then override the default formatting.

For example, if your column names are "Rotulo" and "Termino", as it appears in your example:

void radGridView_GroupSummaryEvaluate(object sender, Telerik.WinControls.UI.GroupSummaryEvaluationEventArgs e)
{
    if ((e.SummaryItem.Name == "Rotulo") || (e.SummaryItem.Name == "Termino"))
    {
        e.FormatString = e.Value.ToString();
    }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top