TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shefali Lahariya
NA
257
155.6k
how to remove button from cell of the datagridview.
Dec 25 2017 5:21 AM
Hi,
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
Reply
Answers (
1
)
database to select item to view sub category C#
Cannot open service on computer