Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Dynamically add and remove ASP.NET GridView Row in WebPart

$
0
0

Hi,

I am Creating a WebPart where I need to Add new Rows to a GridView Dynamically.  I am able to do this at the moment, but my problem is that this GridView has a DropDown List, which gets its data from SQL Server Table.

When ever I add a new row to the gird it does a post back and the selection in the previous dropdown list row changes to the default/goes back to the first item.

Can someone share some code that, lets me keep the previous selection in the dropdown list and add a new row to the gird.  Thanks.


Regards, Vikram


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>