I'm trying to add a delete column to my RadGrid
I added the below column:
However I still get the error Must declare the variable '@articleid'. whenever I try to delete a column. I have used the same where 'articleid=@articleid' for the update statement of the SQLDataSource which works fine so I don't know what is going wrong.
I added the below column:
<telerik:GridButtonColumn CommandName="Delete" CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Text="Delete" UniqueName="AutoGeneratedDeleteColumn" ConfirmText="Do you wish to delete this article?" SortExpression="articleid"></telerik:GridButtonColumn>
and added the appropriate command to my SQLDataSource:DeleteCommand="delete from arts where articleid=@articleid"
However I still get the error Must declare the variable '@articleid'. whenever I try to delete a column. I have used the same where 'articleid=@articleid' for the update statement of the SQLDataSource which works fine so I don't know what is going wrong.