Click here to Skip to main content
15,868,440 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I'm trying to make DataGrid with several functional buttons. Now the problem is how to display values "inside" button (to use buttons as textbox). Every button in GridView will do something on click, and I want specific values to be shown on specific button. Can anyone help?

http://www.igreklik.com/slike/images/46409467928618476191.jpg[^]

As you can see on picture, when I click on first button (under title "Šut u gol"), value inside box need to be 1. Bellow is my code.

C#
if (e.RowIndex == 0 && e.ColumnIndex == 2)

            {
                //TODO - Button Clicked - Execute Code Here

                sutGol1++;              

            }
Posted
Updated 23-Sep-14 0:37am
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900