how to remove button from cell of the datagridview. my code is:-
for (int a = 0; a < count; a++)
{
string membername = objgroupconfereneResponse.groups[i].grpMembers[a].displayName.ToString();
string m_id = objgroupconfereneResponse.groups[i].grpMembers[a].uid.ToString();
row = new object[] { membername, m_id };
datagrdcontactlist.Rows.Add(row);
lstgrpname.Items.Add(objgroupconfereneResponse.groups[i].grpMembers[a].displayName.ToString());
}
DataGridViewButtonColumn DelColumn = new DataGridViewButtonColumn();
DelColumn.Text = "Delete";
DelColumn.Name = "Delete";
DelColumn.UseColumnTextForButtonValue = true;
DelColumn.DataPropertyName = "Delete";
DelColumn.HeaderText = "";
datagrdcontactlist.Columns.Add(DelColumn);
datagrdcontactlist.AutoSize = true;
datagrdcontactlist.AllowUserToAddRows = false;
so how to remove delete buttom from the list when if(id== given id) .
please provide the sample code