![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In the following article, it says to have a button ina gridview, you need to capture the ItemCommand event. Well, there is no ItemCommand event in the gridview. So I use the RowCommand. The Article says to use the e.item.itemindex to determine the row that was selected, well the RowCommand has no e.item.itemindex proeprty. So how am I supposed to put a button in a gridview. http://msdn2.microsoft.com/en-us/lib...3s(vs.80).aspx |
#3
| |||
| |||
|
|
Hello eagle, In the following article, it says to have a button ina gridview, you need to capture the ItemCommand event. Well, there is no ItemCommand event in the gridview. So I use the RowCommand. The Article says to use the e.item.itemindex to determine the row that was selected, well the RowCommand has no e.item.itemindex proeprty. So how am I supposed to put a button in a gridview. http://msdn2.microsoft.com/en-us/lib...3s(vs.80).aspx Yes you are correct that in the GridViewCommandEventArgs class there is no index of the row. Fo this purpose you can follow the sample of this article that describes how you can handle the index of the row: http://msdn2.microsoft.com/en-us/lib...owcommand.aspx Regards Martin |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |