void BindGrid_Details_Filter() { DataTable Dt_FilterFields = (this.ViewState[CnsDt_FilterFields] != null) ? (DataTable)this.ViewState[CnsDt_FilterFields] : null; string FilterText = ""; DataRow[] ArrDr = Dt_FilterFields.Select("Field = '" + this.Cbo_SearchFilter.SelectedValue + "'"); if (ArrDr.Length > 0) { Type Inner_DataType = Type.GetType(Do_Methods.Convert_String(ArrDr[0]["DataType"])); FilterText = Do_Methods.PrepareFilterText( (string)Do_Methods.IsNull(ArrDr[0]["Field"], "") , Inner_DataType , this.Txt_Search.Text); } this.UcGrid_Details.pDt_Source.DefaultView.RowFilter = FilterText; }