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
Why this query is not executing?
How to sumarize RAM (memory) used by process?
Simple JavaScript Hide/Show DIV Question
can u tell me any gujarati paying guest in pune ??
Is There Any Advantage to Having 2 Separate Windows-Based PCs "Connected" to Each Other?
QPainterPath
Browse Text on File Input Type
set a grid to another variable
z-index
When machine in locked state can Outlook forward all emails to a Hotmail account?