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 know I'm connecting my 2.5" laptop IDE connector right other than trial and error (error being destroy the drive)?
Tools for Importing data to different databases
gridView C# dll
select records
Ajax Grid View
Script to move files to multiple directories only to include the current date
Find and Replace Multiple Values
https://owa.domain.com
Redirect to
https://owa.domain.com/owa
SBS 2003 - What Firewall to use to protect server after uninstalling ISA
Java Server Page not displaying menu in IE8