Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
combobox column type in datagridview depending on get result
Durga Velusamy
8 years ago
338
Reply
combobox column type in datagridview depending on get result
datagridview table
empid name attendstatus <-
attendstatus is a combobox column type
combobox list contains Present,Absent
101 abc Present
when saving its fine
string status=datagridview.Rows[i].Cell[2];
if(status=="Present")
{
string attendstatus="P";
}
when retrieving
string status1=dr.getvalue(0).tostring;
if(status=="P")
{
datagridview.Rows[i].Cell[2]=
here i need select one of the value from combobox list
as Present
}
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Export Gridview to text file in asp.net.
Export Gridview Records to Text File Using ASP.Net C#..