how can i add text to a command button in a radgridview row?
AddHandler RadGridDocuments.CommandCellClick, AddressOf RadGridDocuments_CommandCellClick
Dim commandColumn As GridViewCommandColumn = New GridViewCommandColumn()
commandColumn.HeaderText = "Command"
commandColumn.Width = 100
commandColumn.DataField = "PersonID"
5 Answers, 1 is accepted
Yes, it is possible to display the content of a DataField inside the command button. You can do this in the CellFormatting event handler. Consider the following code snippet:
Let us know if you have further questions.
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The original answers in this thread are quite old now. For up to date information on the GridViewCommandColumn, please see the documentation on this column type that can be found here.
I hope you find this helpful but let me know if you need more information
thanks Richard, found what I needed there!