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 Attribute Routing in ASP.Net MVC?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
Is razor a server side?
What is viewstart page in mvc?
Explain Keep method in Tempdata in ASP.Net MVC?
What is the difference between adding routes, to a webforms application and to an mvc application?
Do I need microsoft .net framework?
What is Area in ASP.Net MVC?
How we can multiple submit buttons in ASP.Net MVC
What are the main components of .net framework?
What is viewdata?
What are Validation Annotations?
what is dot net? what is use dot net? what is benifit of dot net?what is vb dot net? what is ado dot net? what is c#?
Explain something about model, view and controllers in asp.net mvc?
What is storage model? : Entity framework