scampercat

scampercat

  • NA
  • 189
  • 0

Formview control

Nov 3 2011 5:41 PM
Since I am new to working with C#.asp.net 2010 webforms, I would like suggestions on using a formview control versus a listview control or possibly an asp.net table control.
For the the page I am working with, only one row will be disaplyed at a time while the user either inserts or updates data for that row. I am suppose to have three columns which are: the column name, column value and column description. I also want to display the various columns by categories.

I know I could accomplish my goal with an asp.net table control, but I do not believe this is the best solution. I only want to use this soltuion if nothing else works.

So far I have used a formview control since it is setup for only one row at a time and it is more customizable than a detailview control is. What I would to do is setup my three columns that are 'grid' style. I know the detailview is grid style, but you can not do any extra formatting.

Thus can you tell me with the formview control, can I add an extra column (for the static description of the columns) and make the column name and column values look more like a grid. If so, how would you accomplish this goal?
I would also like to add a few separator rows that would indicate what category the group of columns are setup for. Can a
formview control meet this requirement? If so, can you point me a reference that i can use to see how to accomplish this task?

If the formview control does not work, can you point me to references where a listview control would meet my requirements?

Answers (1)