Questions tagged [detailsview]

DetailsView is a data-bound control that renders a single record at a time from its associated data source

In ASP.NET 2.0, DetailsView is a data-bound control that renders a single record at a time from its associated data source. It can optionally provide paging buttons to navigate between records, and a command bar to execute basic operations on the current record (Insert, Update, Delete). DetailsView generates a user interface similar to the Form View of a Microsoft Access database, and is typically used for updating/deleting any currently displayed record or for inserting new records.

603 questions
2
votes
2 answers

Finding user control in TemplateField of DetailsView

I have a DetailsView that I'm posting back - and inside of that is a UserControl. I'm having some difficulty located it in the postback data. As an example:
Khanzor
  • 4,830
  • 3
  • 25
  • 41
2
votes
1 answer

How to Load the Same UIVew with Different Data from a Table List?

I have a small project where I'm trying to build a recipe list for a game. I have my UITableView running great - the only problem is that I don't know how to connect each cell with a DetailView. Currently if you select any of the cells it does the…
Jake
  • 1,285
  • 11
  • 40
  • 119
2
votes
3 answers

Get primary key column value after inserting record using DetailsView and EntityDataSource

I'm using DetailsView with EntityDataSource and binding EntityDataSource directly with Entity Model. I want to get the primary key value after record has been inserted. How can I get it either in protected void detailsVewUser_ItemInserted(object…
hotcoder
  • 3,176
  • 10
  • 58
  • 96
2
votes
1 answer

Adding TemplateField to DetailsView

How do I add TemplateField control to the beginning of the DetailsView Fields collection? Here is my code.. TemplateField tf = new TemplateField(); ... ... dv.Fields.Add(tf); This adds to the very end of the DetailsView control. I tried…
dotnet-practitioner
  • 13,968
  • 36
  • 127
  • 200
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
2 answers

ItemUpdating does not call on DetailsView using EntityDataSource

I have a details view bound to an entity data source and am trying to use it to update some things. But the ItemUpdating event never fires when I press the Update button. Here is the code:
Ty Rozak
  • 471
  • 6
  • 19
2
votes
3 answers

Is it possible ot extract the Checked state from a CheckboxField within a DetailsView?

Originally I had a TemplateField with a CheckBox in it but I couldn't set the checkbox Value using Checked='<%# (bool)Bind("FieldName") %> or Checked='<%# (bool)Eval("FieldName") %> It kept throwing an invalid cast exception. The field in the…
gsirianni
  • 1,334
  • 2
  • 18
  • 35
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
1 answer

asp.net add templatefield items for many dropdownlist to detailsview control

How can I add the following templatefield programmatically for each of the dropdownlist control inside the details view?
dotnet-practitioner
  • 13,968
  • 36
  • 127
  • 200
2
votes
1 answer

detailsview with multiple dropdownlists

I have a DetailsView like this:
AlessandroG
  • 318
  • 5
  • 14
2
votes
3 answers

Splitview with multiple detail views using storyboarding. Seen an example/tutorial?

I'm trying to track down an example like Apple's MultipleDetailViews sample for UISplitViewController, but using storyboards. Their sample code provides functionality similar to what I'm after, I'm just having trouble getting it to work in my app…
That Guy
  • 460
  • 1
  • 7
  • 17
2
votes
1 answer

DetailsView converts TextBoxes empty string to null

I have a basic ASP.NET Web Forms application. I give the user the possibility to create the records by using a Web Form and to update them by using a DetailsView. The web form stores the empty field on the TextBoxes as *empty strin*g in the DB…
CiccioMiami
  • 8,028
  • 32
  • 90
  • 151
2
votes
1 answer

How would that be possible to move the Edit button on top of the DetailsView?

I have a DetailsView which is bound to a SqlDataSource. It also has an Edit CommandField which appears on the bottom of the autogenerated rows.
The Light
  • 26,341
  • 62
  • 176
  • 258
2
votes
2 answers

ASP.Net: Setting the width for DetailsView

I am using a DetailsView control with a field that has a large amount of HTML text. The rendered page displays the DetailsView data column with a very narrow width. What I'd like to be able to do is Allow the field header column to take up as much…
millie
  • 2,642
  • 10
  • 39
  • 58
2
votes
3 answers

Getting a lits of all child controls of a control, by type

im trying to make a method that creates a List with the name of all the child controls of a DetalsView that are of type string. The closest i got was: foreach (Control c in dv.Controls) { if (c is Label) …
TheGateKeeper
  • 4,420
  • 19
  • 66
  • 101