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
0
votes
1 answer

Populating a GridView and a DetailsView when a webform is first loaded

On a form that has both a summary GridView and a DetailsView we would like to have the DetailsView populate with data when the page is initially displayed without the user needing to click on the "Select Button" in the GridView. If this can be done,…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
2 answers

DetailsView Not Working with DataSource

I am attempting to use a Details view. This is my DataSource I am passing it this way. IEnumerable row = Connection.GetDataTable([sql]).AsEnumerable(); this.dvOrderInformation.DataSource = row; this.dvOrderInformation.DataBind(); I am…
TheMonkeyMan
  • 8,622
  • 8
  • 27
  • 42
0
votes
2 answers

Insert/submit new record not working on detailsview in insert mode

I have a detailsview that is always in insert mode. The user will always only enter new records never edit or view. The probelm I am having is when i press the insert button(to add a new record after the fields have been filled out) nothing…
user1596472
  • 155
  • 1
  • 3
  • 17
0
votes
1 answer

DetailsView "Selected fields" ListBox of "Fields" window shows no fields

On a web form we have a DetailsView bound to a dataSource. The property called "AutGenerateRows" is also set to true. When the web form is displayed in a web browser, the data from the fields are shown. We want to change the properties of some of…
Emad-ud-deen
  • 4,734
  • 21
  • 87
  • 152
0
votes
2 answers

Inserting records not working on detailsview in insert mode

I have a detailsview that has multiple fields and is always only used in insert mode. The problem I have been having is when I enter all the values into my detailsview and hit the insert button nothing happens. Well the screen is refreshed but no…
user1596472
  • 155
  • 1
  • 3
  • 17
0
votes
1 answer

same color scheme during update, insert and read only modes of details view

In asp.net Detailsview has several predefined templates but these template changes according to details view mode. Like if the details view has update mode then it will have different color scheme (though template is same). Problem: i want to apply…
0
votes
2 answers

Asp.net: DetailsView cancels update when redirecting

I have a DetailsView control like so:
rf_wilson
  • 1,562
  • 5
  • 32
  • 44
0
votes
1 answer

Insert extra custom fields from DetailsView

I am using a DetailsView control (C# 4.0) to add a record with an EntityDataSource control. There are some fields that need to be added which I do not want to be visible in the DetailsView control - such as DateAdded and UserId - these fields…
rf_wilson
  • 1,562
  • 5
  • 32
  • 44
0
votes
1 answer

Manual Binding To DetailsView

I Want to bind detailsview to the page manually , for example I Have a linqdatasource as declared here in design mode.. On a page load event I have written following.. protected void Page_Load(object sender, EventArgs e) { DetailsView dv = new…
Vishal Sharma
  • 2,773
  • 2
  • 24
  • 36
0
votes
2 answers

Hidden field in detailsview - aspnet membership userID

I have a little detailsview where i can add some data to my DB. The detailsview's code:
amman
  • 142
  • 4
  • 12
0
votes
1 answer

Pre-populate DetailsView InsertItemTemplate TextBox with User.Identity.Name value

I am trying to put the UserName of the authenticated user on an Insert item template. I need the easiest explanation since I am very new. I really appreciate your help. This is what I have:
0
votes
5 answers

Newline in textarea in DetailsView (asp.net)

I just updated a page to use a DetailsView in asp.net. It included a MultiLine textbox, which is now in the EditItemTemplate of the details view. The problem is that when outputting this data (which is stored in the database), I was replacing…
Ryan
  • 17,511
  • 23
  • 63
  • 88
0
votes
2 answers

detailsview, how null value came?

I am having a problem dealing with Detailsview InsertItemTemplate. I am following ASP.Net 4 for Beginners by WROX. I have a dbase with table Employee(EmpId, Name, DoB, Sex, DeptId, Position) I am trying to insert values into this table using…
asp_NewBee
  • 299
  • 1
  • 6
  • 18
0
votes
1 answer

C# Databases Form1 = Datagridview, Form2 = Details View UPDATE/EDIT Method

In my form1 i have my tblContacts in a datagridview, the user can click the button next/previous to navigate through the database. form1 also has an update button which leads to form 2 which is a details view of the same dataset from form1. Can…
Kay
  • 17,906
  • 63
  • 162
  • 270
0
votes
0 answers

DetailsView Word-Wrap issue

I Have an DetailsView with the property wrap=true. However I want the detailsview to word-wrap, not break words. How can I change these properties inside of the detailsview? Here is an example of it happening. Details View Snippet:
Rutger Kappers
  • 366
  • 1
  • 3
  • 11