Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • You can cast sender as Button189 . Commented Jan 30, 2015 at 11:02
  • but protected void Button10_Click(object sender, EventArgs e) { } is outside of gidview Commented Jan 30, 2015 at 11:04
  • @Suprabhat give error int rowId = gvRow.RowIndex; Object reference not set to an instance of an object. Commented Jan 30, 2015 at 11:09
  • @Buba Couldn't understood what u said above "protected void...is outside of gidview". Your both buttons are inside gridview and button event will be generated from gruidview. Just give it a try, i have done such kind of thing many times in my project. If, it doesn't work lets us know here. We can resolve it in other ways. Commented Jan 30, 2015 at 11:11
  • It's ok, work..i understood you! But i want to set button189 to false from another button which is NOT in gridview. Commented Jan 30, 2015 at 11:20