Hi, I'm trying to pass a parameter in the GridButtonColumn's CommandArgument and CommandName field. From what I can see in the examples, I should be able to just put in the field, like this.... CommandArgument="Part_id", however, it does not seem to pass the param back to the code behind. I'm using the RadGrid1.ItemCommand event handler and it kicks off that event just fine. Here is the button and the code behind and the error....
<telerik:GridButtonColumn ButtonType="LinkButton" HeaderText="Additional<br />Process" CommandArgument="Part_id" CommandName="Part_id" Text="View" UniqueName="lnkPartID" DataType="System.Int32"></telerik:GridButtonColumn>
Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles RadGrid1.ItemCommand
Dim partID As Integer = CInt(e.CommandArgument)
code....code.... .code....
End Sub
Error...
Input string was not in a correct format...
The value is an integer.
Many thanks,
-Erich Neubert