Learn from yesterday, Live for today, For a better tomorrow. ————wjshan0808
System.Data.DataTable dt = new System.Data.DataTable(); dt.PrimaryKey = new System.Data.DataColumn[] { dt.Columns["name"] }; System.Data.DataRow row = dtDW.Rows.Find(value);