Replies
Hi,
I was investigating the same error like you have. Followed the procedure on the asp.net forum to get the break on the exception. But I can't seem to identify the causing missing file like you did. I have the latest ASP.NET components 2009.1 SR1 and I am using the style Claymation. The background-image mentioned here I had in the old versions but not in the new one.
Do you have any tips to find out what file could be missing?
Thanks
I am encountering the same problem. The row is alway, in my case, Nothing. I can assure you that it is really frustrating to do something so simple when it isn't working. I hope you can find my problem.
I pass you the code behind:
Protected Sub lnkbtnEditar_Clicked(ByVal sender As Object, ByVal e As EventArgs)
For Each row As GridRecord In WebDataGrid1.Behaviors.Selection.SelectedRows
If Not (row Is Nothing) Then
Dim iCount As Integer = row.Items.Count
End If
Next
End Sub
The aspx page code:
<ig:WebDataGrid ID="WebDataGrid1" runat="server" DataKeyFields="ID" StyleSetName="Claymation" AutoGenerateColumns="False" Width="260px" StyleSetPath="~/ig_res">
<Columns>
<ig:TemplateDataField Key="Año" Width="50px">
<ItemTemplate>
<asp:Label ID="lblAño" runat="server"><%#DataBinder.Eval(CType(Container, Infragistics.Web.UI.TemplateContainer).DataItem, "Año")%></asp:Label>
</ItemTemplate>
<Header Text="Año" />
</ig:TemplateDataField>
<ig:TemplateDataField Key="Fecha inicial" Width="81px">
<ItemTemplate>
<asp:Label ID="lblIniVig" runat="server"><%#DataBinder.Eval(CType(Container, Infragistics.Web.UI.TemplateContainer).DataItem, "IniVig")%></asp:Label>
</ItemTemplate>
<Header Text="Fecha inicial" />
</ig:TemplateDataField>
<ig:TemplateDataField Key="Fecha final" Width="81px">
<ItemTemplate>
<asp:Label ID="lblFinVig" runat="server"><%#DataBinder.Eval(CType(Container, Infragistics.Web.UI.TemplateContainer).DataItem, "FinVig")%></asp:Label>
</ItemTemplate>
<Header Text="Fecha final" />
</ig:TemplateDataField>
</Columns>
<Behaviors>
<ig:Selection RowSelectType="Single" CellClickAction="Row">
<SelectionClientEvents RowSelectionChanged="WebDataGrid1_RowSelectionChanged" />
</ig:Selection>
<ig:Sorting SortingMode="Single" Enabled="true"></ig:Sorting>
</Behaviors>
</ig:WebDataGrid>
<asp:LinkButton ID="lnkbtnEditar" runat="server" CausesValidation="false" OnClick="lnkbtnEditar_Clicked">Editar</asp:LinkButton>
<script language="javascript" type="text/javascript">
function WebDataGrid1_RowSelectionChanged(webDataGrid, evntArgs) {
//for the moment do nothing
}
</script>