Databound ASP.NET Gridview does not reflect updated values.

  • Thread starter Thread starter Ariadne99
  • Start date Start date
A

Ariadne99

Guest
I am using .NET framework with C# in Visual Studio 2017 with the database as SQL Server Mgmt. Studio 2014.

In my Web Form , I have an <asp:GridView> bound to SqlDataSource amongst other controls.

I have added a command template field with Edit and Delete buttons. The first ID column has Edit Item Template with a DropDown List that is bound to another SqlDataSource .

On clicking Edit , the drop down list is displayed and allows me to select an ID but on clicking the Update button the Grid View displays the original values itself . The changes are not reflected in the database either .

I am quite new to coding and to this forum so I apologize for any rookie errors !

Any valuable suggestions on this issue would be much appreciated ! Thanks .

Continue reading...
 
Back
Top