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

Does Tempdata hold the data for other request in ASP.Net MVC?

740


What is the use of the default route {resource}.axd/{*pathinfo} ?

763


What is entity graph? : Entity framework

726


Explain the difference between viewbag and viewdata in mvc?

743


What is .net framework used for?

772


What is renderbody?

764


Does .NET Framework support SAX?

755


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

786


Is dapper faster than entity framework?

727


What is the full form of sp?

699


What is stateless model?

729


How do I install .net framework?

723


mention what is csdl, ssdl and msl sections in an edmx file?

797


What is the purpose of a web form?

743


What is ado.net data provider? : Entity framework

783