protected void gdDocument_ItemDataBound(object sender, DataGridItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { string Doc_Id = ((Label)e.Item.FindControl("lblDrawing")).Text; DataTable dtDrawing = ViewState["dtDrawing"] as DataTable; DataRow[] drs=dtDrawing.Select("Dwg_No="+Doc_Id); } }
Min (20) must be less than or equal to max (-1) in a Range object.
DataRow[] drs=dtDrawing.Select("Dwg_No='"+Doc_Id+"'");
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)