changing layout within DetailsGrid/DetailsView?

I like how easy it is to create and display editable forms in VS 2005. However, I can't figure out how to format these prebuilt forms in the manner that I want (floating CSS divs).

In the detailsGrid - using the CSS friendly, how can I put the edit/new/delete links into a separate div (like the footer). It puts these links within the rest of my content. It does not allow me to edit the item templates :(

I tried the Datalist Control, but this ignore any div tags that I placed within it, because for some reason it wraps all of it within a table.

What I am ultimately trying to accomplish, should be fairly easy. I have a set of 8 or different forms. Each form has a different layout depending on the content that it is holding. (i.e. some have many checkboxes, while others have long text description boxes) I need to be able to control which div I assign to each of the content areas. Also, I need the form fields to be in 2 columns.

.formField {
float: left;
width: 25%;
}
.formCheckbox {
float: left;
width: 33%;
}
formDesc {
float: left;
width: 100%;
}

I am assuming I am using the wrong tools to do this. What is the best way for me to create my own forms, but also being able to add/edit/delete records as well I would like a bares bones approach, such as build a form, drag out a Datasource, add edit and submit buttons, and INSERT into SQL

Thanks.

Patrick




Answer this question

changing layout within DetailsGrid/DetailsView?

  • charlie_pike

    This question is about forms, not ADO.Net. Moving it to a hopefully more appropriate forum.


  • changing layout within DetailsGrid/DetailsView?