Delete GridView not working

I use GridViewin C # .NET 3.5 and just converted the base model DataSourcefrom Adapterto an object that gets its data from LINQ to SQL - that is, a business object that is returnsa List<>for a function GetData(), etc.

In Denmark, everything is fine, well Update, and the conditional statements Selectwork as expected, but I can not get the function Deleteto work. Just trying to pass the identifier or the whole object, but it is passed in the "new" object without any properties. I'm just wondering if the old monster OldValuesParameterFormatString="original_{0}"is ObjectDataSourcegetting confused again.

Does anyone have any ideas?

+3
source share
1 answer

. GridView DataKeyNames , ( ). , "" Grid.

+6

Source: https://habr.com/ru/post/1696426/


All Articles