Questions tagged [edititemtemplate]

71 questions
5
votes
2 answers

Gridview EditItemTemplate DropDownList Get SelectedValue

In my Gridview I have the following template field: <%# Eval("DeptCode") %>
Baxter
  • 5,633
  • 24
  • 69
  • 105
5
votes
4 answers

Error: SelectedValue which is invalid because it does not exist in the list of items

I have a Gridview which binds to an ObjectDataSource (objStudentDetails). In edit/insert mode of the Gridview one of the fields is a DropDownList that gets it's pick list options from a lookup table. I have this DropDownList binding to another…
Tone
  • 2,793
  • 6
  • 29
  • 42
4
votes
4 answers

How to AutoPostBack in EditItemTemplate?

I have a couple of DropDownLists in a FormView EditItemTemplate. One of them is a list of brokers and the other a list of broker accounts. When the Broker DropDownList is changed, I want the Accounts DropDownList to be populated with a list of…
Mark Allison
  • 6,838
  • 33
  • 102
  • 151
4
votes
1 answer

Update DataGrid inside AJAX accordion

I have an AJAX accordion from the ajax control toolkit on a page with a datagrid inside on of the panels. I have a custom itemtemplate for the one column to create a multiline textbox when I click edit on the row. When I click update on the row,…
Alex
  • 136
  • 1
  • 2
  • 9
4
votes
2 answers

get value on edititemtemplate from codebehind

I have a detailsview where I get couple of data from membership profile and I display it on detailsview...this works fine: But when I click the edit…
EagleFox
  • 1,367
  • 10
  • 34
  • 58
3
votes
2 answers

How to programmatically reach any AspxControl inside an AspXGridView's EditItemTemplate

Its very simple and i feel myself as an idiot :( I newly started to using DevX Controls. Its documentation and sample projects are SUCKS! My problem is: I have an ASPxGridView on my aspx page:
DortGen
  • 402
  • 2
  • 8
  • 22
3
votes
1 answer

Bound DropDownList of "unused" items plus current row item in EditItemTemplate of GridView?

I have 2 tables with unique IDs that can be mapped to each other (one table comes from a database outside of my application but has information about the same entities I'm tracking). I want to provide a UI for linking "my" records with the "other"…
GISmatters
  • 431
  • 8
  • 20
2
votes
2 answers

Debugging GridView / ObjectDataSource events

Ahoy! I am using an ASP.NET GridView control bound to an ObjectDataSource:
Adam
  • 75
  • 1
  • 2
  • 7
2
votes
1 answer

Ajax Control Toolkit Calendar control not working in DetailsView EditItemTemplate

I have a DetailsView with a bunch of EditItemTemplates. One of them has a text box that accepts dates. In order to make the form more user friendly I wanted to add an Ajax toolkit calendar control so the user can pick a date from the calendar. I…
2
votes
1 answer

asp.net how to add TemplateField programmatically for about 10 dropdownlist

This is my third time asking this question. I am not getting good answers regarding this. I wish I could get some help but I will keep asking this question because its a good question and SO experts should not ignore this... So I have about 10…
dotnet-practitioner
  • 13,968
  • 36
  • 127
  • 200
2
votes
3 answers

DropDownList in GridView not available when Editing

I've got the setup below. When I click the 'Edit' link on the CommandField, a RowEditing event gets fired, but the row does not allow me to edit; specifically, the DropDownList does not appear. My code seems to conform to all the examples I can…
Dave
  • 4,546
  • 2
  • 38
  • 59
2
votes
1 answer

What is the best way to implement "Copy to new" functionality with FormView control and content templates

I have a FormView control in an ASP.NET page. I use the InsertItemTemplate and EditItemTemplate to provide data manipulation functionality, and it is working very well. I would like to allow the user to "Copy to new" from an existing item. In other…
rogdawg
  • 687
  • 3
  • 11
  • 33
2
votes
1 answer

Problems with AJAX CascadingDropDown and DropDownList SelectedValue in EditItemTemplate

I am having problem in EditItemTemplate of FormView. When I use such code in InsertItemTemplate everything works:
Wodzu
  • 6,932
  • 10
  • 65
  • 105
2
votes
1 answer

calendar control inside gridview edititem template

I can access the calendar control inside the Gridview Footer Template. But it's not so easy to do the same thing in the EditItem Template Can anybody suggest how to do this? I am using 3 controls in the EditItem Template: Calendar, ImageButton,…
user2912964
  • 33
  • 1
  • 8
2
votes
1 answer

How do I export an asp:FormView ItemTemplate to an external file

I have an asp:FormView like this: ... lots of code ... lots more code I would like to move the…
ConditionRacer
  • 4,418
  • 6
  • 45
  • 67
1
2 3 4 5