dotnet / dotnet/dotnet-api-docs

GridView supports Insert (on .NET 3.5)? It does not appear too contradicting documentation.

Aperta
#944 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area-System.Web dotnet-api/prod Pri2 untriaged
Lingua principale
C#
Stelle
949
Fork
1.7k
Merge medio
2g 19h
PR unite (30g)
52

Descrizione

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**

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia da xml/System.Web.UI.WebControls/ObjectDataSource.xml e confronta il testo del metodo Insert con la documentazione collegata di .NET Framework 3.5. Verifica se GridView richiama Insert o genera solo il comando New, quindi aggiorna i metadati o la formulazione di Applies to in modo che il comportamento documentato corrisponda alle versioni del framework supportate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.