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
Inserting from a different database
Can not add duplicate
Cannot Access Mail Tracking Exchange 2010
Excel Formula help
SBS 2008 Backup - schedule Once a day greyed out
Wildcard for Integer MS SQL 2008
basic forces again - object on a hill
C# Outlook Late Binding add Attachment
How to trigger an AC2 event using FLV instance timecode.
When do I chose what variable to select? like int, char, double?