I have a DropDownList in my gridview. I have it set up where it gets populated from the database and I can update the record just fine. But I rather NOT populate it from the database and only give the user 3 choices to choose from. The problem is when I change the code to display the 3 choices to choose from the update to database won't work. Which is a stored procedure and that works good. Below the code the I'm using to populate the DropDownList from my database and how I'm trying to change it to 3 choices to choose from. Can someone please tell me what I'm doing wrong? Thanks...
AutoGenerateDeleteButton="True" AutoGenerateEditButton="True" GridLines="None" OnRowDeleting="gridUserAccounts_RowDeleting" OnRowDeleted="gridUserAccounts_RowDeleted" DataKeyNames="UserName, UserId">
This is what I'm trying to go to work:

Abhishek KumarRank #510 · 4.8K reputationPosted Jun 13, 2016, 10:29 PM EDT
Karthik ElumalaiRank #544 · 4.5K reputationPosted Jun 13, 2016, 10:30 PM EDT
It really simple, you just place one dropdown control inside the template field of gridview control, and in codebehind file , find the that control using the findcontrol() method and just assign a value that using datasource
Vinay SinghRank #604 · 4K reputationPosted Jun 13, 2016, 10:37 PM EDT
mike23 reputationPosted Jun 13, 2016, 11:04 PM EDT
ali tuncerRank #1,499 · 1.1K reputationPosted Jun 13, 2016, 11:24 PM EDT
I think it will be easier if you share your code, how you save to database..
mike23 reputationPosted Jun 14, 2016, 7:19 AM EDT