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 controllercontext?

534


what is lazy loading in entity framework?

584


Describe the roles of clr in .net framework.?

636


What is routeconfig.cs in mvc 4?

642


What is difference between Viewbag and Viewdata in ASP.NET MVC?

559






What is a model in programming?

543


Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?

528


What are actions in mvc?

549


what is ssdl?

672


What are Scaffold templates in ASP.Net MVC?

566


What is route config?

549


What are the 2 ways of adding constraints to a route?

548


What is partialview in asp.net mvc?

593


What operating systems will the .net framework 3.0 be available for?

564


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

561