If im using multiple buttons in a GridView control lets say a "increse"
button for column 1 and "decrease" button in column 2, how can i
determine which button was clicked.
any C# sample code would be appreciated.
thanks
Loading
If im using multiple buttons in a GridView control lets say a "increse"
button for column 1 and "decrease" button in column 2, how can i
determine which button was clicked.
any C# sample code would be appreciated.
thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted May 9, 2008, 1:11 AM
You can do it by assigning a flag or boolian variable.
bool blnDuplicate = false;
Make it true when clicked on column1 or increase button. and make it false for col 2 or decreade button
Now inside for loop u can do the required operation.
if(blnduplicate == true)
{
you know col 1 or increase button is clicked.
}
else
{
col 2 or decrease button is clicked.
}