tags:

views:

40

answers:

2

Hi All,

I want to make a control that show list of bounded data like in grid view but I want to be able to insert new record from the same control

what is the best asp.net control I can use to do that (GridView , FormView or DetailsView)? and why?

Thanks in Advance

+1  A: 

You can do that with all three. If you want to know how, there are some good tutorials on the official ASP.NET website, here.

The choice between them is a formatting/layout decision. A GridView produces a table, showing multiple records, while a DetailsView shows one at a time. A FormView lets you display the data however you want, but required much more effort, since you have to provide the HTML.

avesse
A: 

Thanks Mr. Avesse

I have found a good example in this link

http://www.asp.net/data-access/tutorials/inserting-a-new-record-from-the-gridview-amp-rsquo-s-footer-cs

Thanks

Amira Elsayed
Not a problem. Remember to mark the answer as correct.
avesse