Instead on LinqToSqlDataSource I have:
<asp:DomainDataSource ID="GridDataSource1" runat="server" EnableDelete="true">
<WhereParameters>
<asp:DynamicControlParameter ControlID="FilterRepeater" />
</WhereParameters>
</asp:DomainDataSource>
Using the REFRESH DynamicData preview 4 did not help. At this line:
table = GridDataSource1.GetTable();
It gives an error saying : table expects IDynamicDataSource and we are assigning DomainDataSource.
I tried:GridDataSource1.TryGetMetaTable(out table);
But the table turns out to be null.