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
What you mean by routing in asp.net mvc?
What are the 2 ways of adding constraints to a route?
Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).
Explain tempdata in mvc?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
what is entity framework advantage?
How to enable Attribute Routing?
what is code first approach?
What is entity framework? : Entity framework
What is web api‘s in asp.net mvc 4 ?
Is it possible to combine asp.net webforms and asp.mvc and develop a single web application?
What are the 2 popular asp.net mvc view engines?
What is the use .Glimpse in ASP.Net MVC
Which version of .net framework is installed?
what is lazy loading in entity framework?