Posted 28 May 2026, 6:13 am EST - Updated 29 May 2026, 2:51 am EST
Hi,
Migrate from 2010v1 to 2025v2 399 in ASP.NET WebForms NET Framework 4.8.1.
Using C1GridView from C1.Web.Wijmo.Controls.48.dll
EmptyDataText …
Mensaje de error del analizador: El tipo ‘C1.Web.Wijmo.Controls.C1GridView.C1GridView’ no tiene ninguna propiedad pública cuyo nombre sea ‘rowheader’.
Legacy code:
<C1GridView:C1GridView ID="PartialWithdrawGrid" runat="server"
AutogenerateColumns="False"
EmptyDataText="El operador elegido no ha hecho retiradas parciales"
DataKeyNames="ShiftNumber,PlaceId,DateTime,ManuallyAdded,BEGIN_DATE_TIME_SHIFT,OPERATOR_ID"
CellPadding="2"
OnGroupAggregate="PartialWithdrawGrid_GroupAggregate"
Width="100%">
<rowheader></rowheader>
<Columns>
<C1GridView:C1TemplateField Visible="False">
<GroupInfo FooterText="Total:" Position="Footer">
<footerstyle backcolor="#0050A6" forecolor="White" font-bold="True" />
<headerstyle backcolor="#0050A6" />
</GroupInfo>
<ItemStyle Width="0px" />
</C1GridView:C1TemplateField>
How-to get the total in 2025v2 399, not applies GroupAggregate+C1GroupTextEventArgs
protected void PartialWithdrawGrid_GroupAggregate(object sender, C1GroupTextEventArgs e)
{
decimal sum = 0;
for (int i = e.StartItemIndex; i <= e.EndItemIndex; i++)
{
string s = ((C1GridView)sender).Rows[i].Cells[6].Text;
decimal val;
decimal.TryParse(s, System.Globalization.NumberStyles.Any, null, out val);
CheckBox cb = (CheckBox)((C1GridView)sender).Rows[i].Cells[1].FindControl("CheckBoxGrid");
if (cb.Checked)
{
sum += val;
}
}
Session["PartialWithdrawGridTotal"] = sum.ToString();
HiddenPartialWithdrawalTotal.Value = sum.ToString();
//txtTotal1.Text = sum.ToString("F2");
e.Text = string.Format("{0:C}", sum);
}
(very spaguetty) legacy code in another aspx page:
<cc1:C1GridView ID="CatBreakDownGrid" runat="server"
AutoGenerateColumns="False"
DataKeyNames="ID, VALUE, TIMESTAMP"
OnGroupAggregate="CatBreakDownGrid_GroupAggregate"
Width="100%"
OnRowDataBound="CatBreakDownGrid_RowDataBound"
EmptyDataText="No hay datos" >
<Columns>
<cc1:C1TemplateField Visible="False">
<GroupInfo FooterText="Total:" Position="Footer">
<FooterStyle BackColor="#0050A6" ForeColor="White" Font-Bold="True" />
<HeaderStyle BackColor="#0050A6" />
</GroupInfo>
<ItemStyle Width="0px" />
</cc1:C1TemplateField>
<cc1:C1BoundField DataField="ID" HeaderText="ID" Visible="false" ></cc1:C1BoundField>
How-to get the total in 2025v2 399, not applies GroupAggregate+C1GroupTextEventArgs
protected void CatBreakDownGrid_GroupAggregate(object sender, C1GroupTextEventArgs e)
{
Thread.CurrentThread.CurrentCulture = Util.GetCulture();
decimal sum = 0;
for (int i = e.StartItemIndex; i <= e.EndItemIndex; i++)
{
//string s = ((Label)((C1GridView)sender).Rows[i].Cells[0].FindControl("lblAmount")).Text;
string s = ((TextBox)CatBreakDownGrid.Rows[i].Cells[0].FindControl("lblAmount")).Text;
decimal val;
decimal.TryParse(s, System.Globalization.NumberStyles.Any, null, out val);
sum += val;
}
//string currencySymbol = "<span>" + Util.GetCulture().NumberFormat.CurrencySymbol + "</span> ";
//e.Text = currencySymbol + "<span id=\"" + this.ClientID + "_CatBreakDownGridTotal\">" + string.Format("{0:N}", sum) + "</span>";
string currencySymbol = "<span style='max-width:85px;display:inline-block;overflow:hidden'>" + Util.GetCulture().NumberFormat.CurrencySymbol + "</span> ";
e.Text = currencySymbol + "<span style='max-width:85px;display:inline-block;overflow:hidden' id=\"" + this.ClientID + "_CatBreakDownGridTotal\">" + string.Format("{0:N}", sum) + "</span>";
txtCatBreakDownTotal.Text = sum.ToString("N", new CultureInfo("en-US"));
}
any sugggestions about GroupInfo for 2025v2 399 ?
and rowheader ?





