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
show me everything after the dot in excel
Syncronize Physical Machine with Virtual Machine
How to un-freez the Properties screen
Cisco ASA, allowing Windows domain controller and exchange through two different dmz's
Facebook deny/allow on SonicWALL with Enhanced 4.0
Outlook 2010 and Exchange SMTP Authentication
Difference between Oracle,MySQL and Sybase
Pass-Through Authentication from Active Directory to ASP.Net
numbers messed up in keyboard
Access Warning and Errors