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
IE 8 drop list of favorites
These joins baffles me
get info from php.ini
Windows 7 installation - "no drives were found"
MySQL sum() case/if
How do I increase the volume for iPhone system type sounds when my app starts?
Select statement between 2 date ranges
door knob
PHP String Contains exactly one number and one letter
Can I install linux as a dual boot OS and also access it virtually from a Windows OS?