dotnet / dotnet/dotnet-api-docs
GridView supports Insert (on .NET 3.5)? It does not appear too contradicting documentation.
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
The following statement above seems incorrect: "When the ObjectDataSource object is associated with a data-bound control, such as the GridView control, it is not necessary to call the Insert method from page code. The Insert method is invoked directly by the data-bound control instead."
In C#.NET 3.5, Adding ShowInsertButton="true" to a GridView results in a "New" button - but it does nothing, and in OnRowCommand returns CommandName of "New" - not "Insert".
If Insert is supported in newer .NET builds - Please Update the Applies to field, and/or adjust the statement to reflect this.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 84d939c4-fb83-eb47-e3f4-c75a79b8aa7d
* Version Independent ID: a2cf7f6a-fd85-8a4a-1b47-cc51d87df39d
* Content: [ObjectDataSource.Insert Method (System.Web.UI.WebControls)](https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.objectdatasource.insert?view=netframework-3.5)
* Content Source: [xml/System.Web.UI.WebControls/ObjectDataSource.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Web.UI.WebControls/ObjectDataSource.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.