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
chandu gummadi
NA
67
73.4k
c#.net datagridview control
Oct 6 2012 7:40 AM
hi friends iam using data grid view combobox column
its working properly but at runtime the datagridview combobox column does not show any value if iam click combobox and select any value now only it shows value in combobox. why iam getiing this problem.
iam using bellow code....
DataGridViewComboBoxColumn clnStatus = new DataGridViewComboBoxColumn();
clnStatus.DataPropertyName = "Status";
clnStatus.Name = "Absent - Leave - Present";
clnStatus.DataSource = new string[] { "Absent", "Leave", "Present" };
DgvTeacherAttendance.Columns.Add(clnStatus);
private void DgvTeacherAttendance_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex == 0) //set your index of dropdown here
{
e.Value = "Absent";
}
}
please can anyone help me send me correct code.
iam new for this topic...
Reply
Answers (
1
)
Error in getting record in crystal report
problem with switch case statement