create datatable programmatically

I am tyring to create the dataentry form similar to the screen shot below. So on the page load i would have
bunch of text boxes and dropdowns, and upon submitting the form it suppose to save all that information in system.
What is the best approach to achieve that? I can create the form lookup with ASP:Table, but i am not sure
how can i save information from table to system. So creating dynamic table is the way to go, or there is some other
better approch that i can use. Thanks a lot in advance for your help.
Who is Participating?
I am not sure about the best approach but this is how you can create a data table,

DataRow objDR;
DataTable objDT = new DataTable("RVI");
objDT.Columns.Add(new DataColumn("ProductID", typeof(Int32)));
objDT.Columns.Add(new DataColumn("Name", typeof(String)));

//Each time you create a new row
 objDR = objDT.NewRow();
 objDR["ProductID"] = Textbox1.Text;
objDR["Name"] = Textbox2.Text;
objDR["Designer"] = ddcountry.SelectedValue;
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.