How to bind table coloum with gridview column
Answer Posted / amit
hi,
you use gridview content click event, in this you do like that
if (dgvCustomers.CurrentRow.Index != -1)
{
if (dgvCustomers.CurrentCell.OwningColumn.Name == "eventype")
if (Convert.ToString(dgvCustomers.CurrentCell.Value) ==
"1")
{ msgbox.show("Hello World ..."); }
}
else
{
MessageBox.Show("Hi its amit" );
}
| Is This Answer Correct ? | 3 Yes | 7 No |
Post New Answer View All Answers
how do you mark a property as required? For example, for a project, the name is a required field.
what is eager loading?
What is definingquery in entity framework? : Entity framework
What symbol would you use to denote, the start of a code block in razor views?
What is poco proxy? : Entity framework
Can you explain the page life cycle of mvc?
What is representational state transfer (rest) mean?
What is the difference between adding routes, to a webforms application and to an mvc application?
Explain two instances where routing is not implemented or required?
How we can handle the exception at controller level in ASP.Net MVC?
Is it possible to cancel filter execution?
what is entity framework advantage?
How we can add the CSS in ASP.Net MVC?
Which are the important namespaces used in mvc?
Can I add asp.net mvc testcases in visual studio express?