Posted 28 May 2026, 6:25 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
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>
<C1GridView:C1TemplateField HeaderText="" Visible="true">
<HeaderTemplate>
<asp:CheckBox type="CheckBox" ID="CheckBoxHeader" AutoPostBack="true" Checked="true" onclick="javascript:SelectedOrUnSelectedChecked(this);" runat="server" />
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox ID="CheckBoxGrid" runat="server" Checked="true" AutoPostBack="true" CausesValidation="false" />
<asp:HiddenField ID="HiddenValue" runat="server" Value='<%# Bind("AMOUNT") %>' />
</ItemTemplate>
...
<C1GridView:C1TemplateField HeaderText="Peajista" Visible="true">
<ItemTemplate>
<div style="text-align: left;">
<asp:Label ID="lblCashier" runat="server" Text='<%# Bind("Collector") %>'></asp:Label>
</div>
</ItemTemplate>
</C1GridView:C1TemplateField>
<C1GridView:C1BoundField DataField="AMOUNT"
DataFormatString="c0" Aggregate="Custom"
HeaderText="Cantidad" NullDisplayText="0,00">
<ItemStyle HorizontalAlign="Right" />
</C1GridView:C1BoundField>
</Columns>
CheckBoxHeader clicks SelectedOrUnSelectedChecked javascript:
function SelectedOrUnSelectedChecked(objRef) {
var checkHeader = document.getElementById("ContentPlaceHolder1_PartialWithdrawGrid_CheckBoxHeader");
//debugger;
var GridView = $find("<%= PartialWithdrawGrid.ClientID %>");
var Rows = GridView.get_rows();
var numRows = Rows.get_length();
var count = 0;
for (count = 0; count < numRows; count++) {
var check = document.getElementById("ContentPlaceHolder1_PartialWithdrawGrid_CheckBoxGrid_" + count);
if (check != null) {
check.checked = checkHeader.checked;
}
}
}
any suggestions for legacy code:
var Rows = GridView.get_rows();
var numRows = Rows.get_length();
thanks at all
