Look into the Gridview - it has display and edit capabilities built in:
http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=GvNoCodeEdit
Also another way, if you would like it in a Master/Detail fashion, you could
use a DetailsView, along with a Gridview:
http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=MasterDetail20
David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
> Hello,
>
[quoted text clipped - 9 lines]
>
> Regards
ma - 27 Sep 2007 17:09 GMT
Thank,
I want to have a form view instead of a gridview.
Regards
> Look into the Gridview - it has display and edit capabilities built in:
> http://www.aspnet101.com/aspnet101/aspnet/codesample.aspx?code=GvNoCodeEdit
[quoted text clipped - 21 lines]
>>
>> Regards
Andrew Hayes - 28 Sep 2007 01:24 GMT
> I want to have a form view instead of a gridview.
Then you have answered your own question. Use a FormView control bound to a
(Sql/Xml/Etc)DataSource control, and use Labels in the ItemTemplate and
TextBoxes in the EditItemTemplate. There is also an InsertItemTemplate for
when you want to insert new records.
Check out the MSDN library or VS help.
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.formview.aspx