string[] strarr; DataTable dt1 = Commanclass.returnData("Select product+'==='+Packsize as Product from WholeSalerStock where wholesalerid=" + ddlWholeSaler.Text + " order by Product"); DataRow[] dr11 = dt1.Select(); strarr = Array.ConvertAll(dr11, new Converter<datarow,>(DataRowToString)); public static string DataRowToString(DataRow dr) { return dr["Product"].ToString(); } gvProductPack.DataSource = from str in strarr where str.ToUpper().StartsWith(TextBox1.Text.ToUpper()) select str; gvProductPack.DataBind()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)