Hi,
i bind my RadGrid to an EntityDataSource.
First i want fill it with a where statement.
In T-SQL like so: Select Status,Cti,CreatedDate from Table1 where CreatedUser = @LoggedInUser
This works fine. But when i want to filter some columns i get this error
AutoGenerateWhereClause can not be 'true', if Where is defined
My EntityDatasource look like so
How can i achive this. Fill Grid with where statement and also filtering should work
Thanks
i bind my RadGrid to an EntityDataSource.
First i want fill it with a where statement.
In T-SQL like so: Select Status,Cti,CreatedDate from Table1 where CreatedUser = @LoggedInUser
This works fine. But when i want to filter some columns i get this error
AutoGenerateWhereClause can not be 'true', if Where is defined
My EntityDatasource look like so
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=TestEntities" DefaultContainerName="TestEntities" EntitySetName="Table1" OrderBy="it.CreatedDate DESC" Select="it.[Status], it.[CreatedDate], it.[CTI]" AutoGenerateWhereClause="True" Where="it.CreatedUser = @LoggedInUser"> <WhereParameters> <asp:Parameter DefaultValue="Test\User1" Name="CreatedUser" DbType="String" /> </WhereParameters></asp:EntityDataSource>Thanks