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


Please Help Members By Posting Answers For Below Questions

What is .net framework used for?

584


How we can add the CSS in ASP.Net MVC?

576


Where is tempdata stored?

544


I want ask from plz smaple example code for Biztalkk server

1710


Explain bundle.config in mvc4?

642






Is .net core faster than .net framework?

549


how to disable the lazy loading framework?

591


Mention what is the difference between “ActionResult” and “ViewResult” ?

577


What are action filters?

600


What is main objective of asp.net mvc 4 or what is new in mvc4 ?

600


What are bundling & minification features in asp.net mvc 4?

533


What is the use .glimpse in mvc?

594


What is entity sql? : Entity framework

559


Which filter executes first in an asp.net mvc application?

551


In Server how to check whether model has error or not in ASP.Net MVC

623