I have two columns in a datatable:
ID, Calls.
How do I find what the value of Calls is where ID = 5?
where ID = 5
5 could be anynu
I could use the following code. Thanks everyone.
int intID = 5; DataTable Dt = MyFuctions.GetData(); Dt.PrimaryKey = new DataColumn[] { Dt.Columns["ID"] }; DataRow Drw = Dt.Rows.Find(intID); if (Drw != null) Dt.Rows.Remove(Drw);