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 is controllercontext?
what is lazy loading in entity framework?
Describe the roles of clr in .net framework.?
What is routeconfig.cs in mvc 4?
What is difference between Viewbag and Viewdata in ASP.NET MVC?
What is a model in programming?
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
What are actions in mvc?
what is ssdl?
What are Scaffold templates in ASP.Net MVC?
What is route config?
What are the 2 ways of adding constraints to a route?
What is partialview in asp.net mvc?
What operating systems will the .net framework 3.0 be available for?
Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?