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
3
votes
2 answers

Asp.net DetailsView - multiple columns?

By default, DetailsView supports 2 columns. I'd like to add a third column. Is this possible using DetailsView? Creating a table within each field doesn't do what I'd like as the third column won't be properly aligned. I know I can use other…
Mike
  • 297
  • 3
  • 5
  • 13
3
votes
1 answer

Problem with mixing Detail View and Form Mixin django

I am trying to create a comment system for the blog portion of my app with Django. I have attempted to mix my detail view with the form mixin and I'm struggling a bit. When the form is submitted, it doesn't save and no error is present. If any of…
Kevin H
  • 127
  • 1
  • 7
3
votes
2 answers

DetailsView.ItemInserted Event find the Primary Key (DataKey)

net and C# 4. I have a DetailsView Control, and I use some custom logic for data binding. When input data in my DetailsView I would like to use the Event "Inserted" (or another) to get from the DetailsView the Primary Key for the recently inserted…
GibboK
  • 71,848
  • 143
  • 435
  • 658
3
votes
1 answer

connecting list view and detail view -django

i am trying to create class based detailed view, which can be accessed by clicking listview items.. the problem is it was easly achieved in function based views but cant do the same in class based views. model.py from django.db import models import…
3
votes
1 answer

When I try add insert a value into a asp.net Detailsview I get a "Object reference not set to an instance of an object"

What do I do to fix an "Object reference not set to an instance of an object" error. Which object is it referring to? code: Private Sub dvSMasterCurrentYear_DataBound(sender As Object, e As EventArgs) Handles dvSMasterCurrentYear.DataBound Dim…
jim davis
  • 63
  • 3
3
votes
2 answers

REST API: fields of objects in a list of objects in response JSON

Suppose we are building one-page app with two views: list view and detail view. In list view, we present a list of objects with just their names and maybe some more minimal data. In detail view, we present all possible fields of particular…
Mikhail Batcer
  • 1,938
  • 7
  • 37
  • 57
3
votes
2 answers

Binding a DropDownList inside a DetailsView

I'm having problems trying to populate a dropdownlist from the database. When I'm trying to set the datasource I can't find the dropdown control, it's in a DetailsView so I think it might have something to do with it only being created when it's in…
annelie
  • 2,569
  • 6
  • 25
  • 39
3
votes
1 answer

Copying file details from Explorer as tabular text

I am looking for a way to easily copy the file details that appear in a Windows Explorer (details view) and paste it as tabular text. Ideally, the procedure would be to select some files in an Explorer, make a choice in the context menu (or use a…
user1196549
3
votes
1 answer

How to create a custom button in a DetailsView in ASP.NET?

I am a newbie in ASP.NET. I just want to ask if it is possible to create a button or hyperlink in a DetailsView. I know that there are Edit, Delete, etc. in a DetailsView, but I want to create another button or hyperlink for my own function. Actual…
hisoka21
  • 855
  • 1
  • 12
  • 21
3
votes
1 answer

Hide DetailsView TemplateField from CodeBehind

I am attempting to hide a DetailsView Row conditionally from code behind. I'd like to be able to call SomeMethod based on some condition and have it to hide Row 12. Does anyone know how I can go about accomplishing this? I have used the debugger to…
TimidObserver
  • 157
  • 2
  • 11
3
votes
4 answers

Get the value of a BoundField from a DetailsView

I seem to always have problems with this. I have a button outside of the View that calls a function that needs an OrderNumber. I keep getting an error, ArgumentOutOfRangeException was unhandled by user code in debug mode, or this one in the…
Ray
  • 457
  • 1
  • 6
  • 15
3
votes
1 answer

Mode is not changing in detailsview

in details view once i click edit mode. all the controls are getting into edit mode. i make the changes and give update data is updated in database . but still all the controls are in edit mode only "actaully once we give click then …
happysmile
  • 7,537
  • 36
  • 105
  • 181
3
votes
2 answers

How to programmatically set parameters for EntityDataSource and DetailsView?

Im stumped! What is the best way to programmatically set a selecting parameter for the EntityDataSource control? Specifically, I want to use the Page.User.ProviderUserKey to get a record in a custom User Details table I have, for a DetailsView. I've…
John B
  • 20,062
  • 35
  • 120
  • 170
2
votes
1 answer

Is it possible to have an editable DetailsView for entity objects with subclasses?

Suppose I have two classes, one derived from EntityObject and the other derived from the first: public class Gizmo : EntityObject { ... } public class SpecialGizmo : Gizmo { ... } In the ASP.NET page, the user selects a Gizmo in a list (a GridView)…
Timwi
  • 65,159
  • 33
  • 165
  • 230
1 2
3
40 41