Incredible Efforts My Friend AZIM , I appreciate your EFFORTS !! however this trick helped me ...
private void DisableSelectedBuilders()
{
try
{
string projId = null;
foreach (DataListItem item in myDataList.Items)
{
projId = ((Label)(item.FindControl("ProjID"))).Text;
}
string query = "SELECT [builder_id] FROM [dbo].[d_pprofile_bld] WHERE [is_deleted] IS NULL AND [project_id] = " + int.Parse(projId) + "";
var comm = new SqlCommand(query, _connection);
_connection.Open();
var dt = new DataTable();
var da = new SqlDataAdapter { SelectCommand = comm };
da.Fill(dt);
foreach (DataRow row in dt.Rows)
{
BuilderAssignDropDwn.Items.FindByValue(row["builder_id"].ToString()).Attributes.Add("Disabled", "Disabled");
BuilderAssignDropDwn.Items.FindByValue(row["builder_id"].ToString()).Attributes.Add("style", "background:#eee");
BuilderAssignDropDwn.Items.FindByValue(row["builder_id"].ToString()).Text += " (Already Assigned)";
BATTP_UPanel.Update();
}
_connection.Close();
}
catch (Exception)
{
}
}