Microsoft
Software
Hardware
Network
Question : Deleting A Row from a DataTable based on ID column
Hi All,
I have a DataTable stored within a Session variable like so..
DataTable myDt = new DataTable();
myDt = createTempDatesTable();
Session["TempDataTable"] = myDt;
The DataTable has a column called 'ID' which stored string values.
Please could anyone show me how to delete a row from my DataTable based on a value within the ID column.?
Answer : Deleting A Row from a DataTable based on ID column
If ID column is the primary column, then you can use like:
DataRow foundRow = myDt.Rows.Find("idValue");
foundRow.Delete();
Random Solutions
How do I get my youtube video to show up in Google search results
Administrator´s profile is not saved to profiles folder
CREATE CLASS IN C#
Revert changes back in Rowvalidating event of datagridview
Combobox Databinding Question
Firefox won't load the URL
C# - I want to add "Everyone" user with full permission to a registry hive. Is there a way for this?
Exchange signitures for two companies on same server
science of sweating
win 7 - user profile cannot be loaded.