What is the difference between formview control and detailsview, since it seems that both display data in a row format? can you please suggest?

Bob Dang 1 Reputation point
2022-04-21T07:35:03.163+00:00

195033-image.png

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,306 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,071 Reputation points
    2022-04-22T06:09:18.283+00:00

    Hi @Bob Dang
    Yes, The formview is similar with the detailview. They only show a single record at a time. However, the difference with them is that: the detailview have a table layout. And the formview don't have the table layout. You need to use template to create the layout. Just like this:
    This is the Detailview:
    195453-screenshot-2022-04-22-135954.png
    This is the Formview:
    195435-screenshot-2022-04-22-140023.png

    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Bob Dang 1 Reputation point
    2022-04-22T06:12:12.147+00:00

    What does it mean that the formview only shows a single record of data at a time? Can you please suggest?