T Tales Normando Dec 23, 2004 #1 How can I get the last datarow added in a table created from scratch, that is, not related to any database whatsoever?
How can I get the last datarow added in a table created from scratch, that is, not related to any database whatsoever?
S Sahil Malik Dec 27, 2004 #3 DataTable.Rows[DataTable.Rows.Count - 1] <--- Thats how !! Alternatively, there is a TableNewRow event on a datatable DataTableNewRowEventArgs e.Row will get you the row being added to the datatable. HTH - Sahil Malik http://dotnetjunkies.com/weblog/sahilmalik
DataTable.Rows[DataTable.Rows.Count - 1] <--- Thats how !! Alternatively, there is a TableNewRow event on a datatable DataTableNewRowEventArgs e.Row will get you the row being added to the datatable. HTH - Sahil Malik http://dotnetjunkies.com/weblog/sahilmalik