Difference between datatable and datarow in ASP.NET
What is the difference between Datatable and DataRow in asp.net. When i use datatable and when datarow in application
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jan 16, 2012, 1:10 AM EST
Datta KharadRank #2,135 · 668 reputationPosted Jan 16, 2012, 1:20 AM EST
Refer our recommended article..
http://www.c-sharpcorner.com/uploadfile/mahesh/datatable-datacolumn-and-datarow-classes/
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 16, 2012, 1:43 AM EST
Data Table is nothing but collection of Data Rows.
Data Table has multiple Data Row and Data row is single unit.
hope this help.
Anuja PawarRank #1,404 · 1.2K reputationPosted Jan 16, 2012, 11:45 PM EST
In ASP.Net, DataRow class provides the functionality to add a new row i.e. new record into the DataTable. DataRow object inherits the schema of ASP.Net DataTable and allows you to add the values for each DataColumn according to the specified DataType for a data column of DataTable. You can use the zero based index number of DataColumn or column name to pass the value for specific column in the new DataRow. Index of the DataColumn depends upon the order of adding a DataColumn to the DataTable.