I am designing a customer data entry form having one section (section 1) of single values like customer's occupation, DOB, Country.
Other section (section 2) have multiple records like below one.
Term Policy Information
------------------------------
PolicyNo, Policy name, Assured Sum
1001, ICICI Term, 10000
2002, HDFC Term, 10000
30001, Religare Term, 20000
Should I go for FormView control for this requirement? I am not sure whether I can display multi row data inside the FormView like my requirement for Section 2.
According to your description, I only know you have two sections(entry form and Term Policy Information), I can't see your picture, So I not clear the relation of two sections.
As far as I know, if you have multiple rows data, you could use GridView to show these data, like section2.
If you want to show one person information, like section1, I think formview is a right choice.
About how to show data in GridView and display one row record, please refer to this link:
Display (Show) GridView Selected Row in FormView control in ASP.Net using C# and VB.Net:
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
4 Points
30 Posts
How can I display multiple records against a DataKey in the FromView
Jan 10, 2017 11:30 AM|arun_88|LINK
I am designing a customer data entry form having one section (section 1) of single values like customer's occupation, DOB, Country.
Other section (section 2) have multiple records like below one.
Term Policy Information
------------------------------
PolicyNo, Policy name, Assured Sum
1001, ICICI Term, 10000
2002, HDFC Term, 10000
30001, Religare Term, 20000
Should I go for FormView control for this requirement? I am not sure whether I can display multi row data inside the FormView like my requirement for Section 2.
Contributor
6730 Points
2715 Posts
Re: How can I display multiple records against a DataKey in the FromView
Jan 11, 2017 08:17 AM|Eric Du|LINK
Hi arun_88,
According to your description, I only know you have two sections(entry form and Term Policy Information), I can't see your picture, So I not clear the relation of two sections.
As far as I know, if you have multiple rows data, you could use GridView to show these data, like section2.
If you want to show one person information, like section1, I think formview is a right choice.
About how to show data in GridView and display one row record, please refer to this link:
Display (Show) GridView Selected Row in FormView control in ASP.Net using C# and VB.Net:
http://www.aspsnippets.com/Articles/Display-Show-GridView-Selected-Row-in-FormView-control-in-ASPNet-using-C-and-VBNet.aspx
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.