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
Zonealarm (free version) gives you pop-ups?
JQuery form values
RDLC and syntax help needed
Can't Reach the port 445 for my domain controler / Change the 445 port
economical for farmers to feed grass in summer (& customers also?)
saving data to text
problem when I publish a Web page and XMl
vb insert space
HTTP 403 Forbidden error in WordPress installation
Extract data from a set point in a string