Line 25: <ej:Grid ID="Grid1" runat="server" AllowFiltering="True" AllowGrouping="True" AllowPaging="True" AllowSorting="True" CssClass="" DataSourceCachingMode="None" DataSourceID="SqlDataSource1" EnableLoadOnDemand="False" MinWidth="0" SelectedRowIndices="System.Collections.Generic.List`1[System.Int32]">
Can't figure this out, please help.
Thanks!
<ej:Grid ID="Grid1" runat="server"
AllowGrouping="True" CssClass=""
DataSourceCachingMode="None"
DataSourceID="SqlDataSource1"
EnableLoadOnDemand="False"
MinWidth="0"
Selectiontype="Multiple"
SelectedRowIndices="2,4">
. . .
</ej:Grid> |
I'm getting the same error with this code:
<ej:Grid ID="Grid1" runat='server' AllowFiltering="True" AllowPaging="True" AllowSorting="True" CssClass="" DataSourceCachingMode="None" DataSourceID="SqlDataSource1" EnableLoadOnDemand="False" MinWidth="0" SelectedRowIndices="System.Collections.Generic.List`1[System.Int32]">I tried the above solution but it didn't work. When I delete
SelectedRowIndices="System.Collections.Generic.List`1[System.Int32]"
from the Grid properties (Source view), the table appears correctly in the web browser, but when I view the page in Design mode, I get an error showing that the control can't be rendered:
The DataSourceID of 'Grid1' must be the ID of a control type IDataSource. A control with ID 'SqlDataSource1' could not be found.
The control otherwise works but the error message in Design view could lead to more serious problems.
Thanks.
Hi. When SelectedRowIndices are the default value, i.e.
System.Collections.Generic.List`1[System.Int32]
then I get an error when viewing the page with a web browser. When I set SelectedRowIndices="2,3", an error occurs with the grid in Design view (see attached file), but it displays correctly after I close the file and re-open it. Not sure if that's a bug, but the work around is ok for using the grid. :)
Thanks! Solution works. BTW ... the grid control is amazing. I replaced custom made grids with the Syncfusion one and it reduced the code to 10% of what it was before.