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
domain question
which window7 machines are supporting remote desktop connection of microsoft for multi user in same time?
ASSP Spam Issues
Filer a form with comobox value
CSS to make image expand to left
Access 2010 ribbon
Can changing the title of my pages affect my Google Adsense earnings?
Solution vs. Project
Theoretical question: What if I forget my BIOS password of my SONY VAIO. Is there some super password approach?
absolute positioning of logo in IE6 not working with CSS styles