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
Revathi Parvathi
NA
323
64.2k
i want to add two button in single coulmn (column no: 21)
Aug 22 2017 3:00 AM
Hi,
I want to add two button in single coulmn (column no: 21) in datagridview without using datatable.Please help me.how to add 2 buttons in column no 21.
ChangeRep = new DataGridViewButtonColumn();
// ChangeRep.UseColumnTextForButtonValue = true;
ChangeRep.HeaderText = "";
ChangeRep.Width = 120;
ChangeRep.Name = "ChangeRep";
ChangeRep.Text = "Change Rep";
ChangeRep.HeaderText = "ChangeRep";
ChangeRep.FlatStyle = FlatStyle.Popup;
ChangeRep.DefaultCellStyle.BackColor = System.Drawing.Color.Navy;
ChangeRep.DefaultCellStyle.ForeColor = System.Drawing.Color.White;
ChangeRep.UseColumnTextForButtonValue = true;
//gv_CRWS_details.Columns.Insert(23, ChangeRep);
undo = new DataGridViewButtonColumn();
// ChangeRep.UseColumnTextForButtonValue = true;
undo.HeaderText = "";
undo.Width = 120;
undo.Name = "undo";
undo.Text = "Undo";
undo.HeaderText = "ChangeRep";
undo.FlatStyle = FlatStyle.Popup;
undo.DefaultCellStyle.BackColor = System.Drawing.Color.Navy;
undo.DefaultCellStyle.ForeColor = System.Drawing.Color.White;
undo.UseColumnTextForButtonValue = true;
ChangeRep.UseColumnTextForButtonValue = true;
//gv_CRWS_details.Columns.Insert(23, ChangeRep);
//gv_CRWS_details.Columns.Insert(23, undo
Reply
Answers (
1
)
code for reminder emalis
Assembly reference missing.