protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            BulletedList list = e.Row.FindControl("BulletedList1") as BulletedList;            DataRowView drv = e.Row.DataItem as DataRowView;            using (SqlConnection conn = new SqlConnection(WebConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString))
            {
                SqlCommand cmd = conn.CreateCommand();
                string[] sArray = drv["idList"].ToString().Split(','); 
                string ss = string.Empty;
                foreach (string s in sArray)
                {
                    ss += "'" + s + "',";
                }                ss = ss.Substring(0, ss.Length - 1);                cmd.CommandText = "select name from Table2 where id in (" + ss + ")";
                conn.Open();
                SqlDataReader reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
                while(reader.Read())
                  list.Items.Add(new ListItem(reader.GetString(0)));            }}