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
2008 Domain Environment Mixed Mode
Does Microsoft Visual Basic 6.0 support intellisense?
Shortest Path Algorithm
Locating static file inside Jboss server
Is there a patch that will allow me to have Windows Server 2008 server run KMS to activate Windows 7 clients.
IIS
How do i make Timeslips 2009 work in Citrix Xendesktop on Windows XP
Terminal Services on Windows SBS 2008 Standard
PC gets to windows XP splash screen - then reboots (f8 safe mode same)
Help with centering this background image