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
run this vbs script as local admin of remote computer
Mirrored SBS for backup
How to copy line chart color and apply on on the chart title (Excel 2007/VBA)
Ms access report footer suppress
Team Foundation Server, Visual Studio, Dot Net
merge events from one calendar to specific users calendar
access load swf outside of loader function
Best practice for external hard drive gaming
SQL Select Query Against Static table
How important is a captcha?