All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Well, the best approach here would be to use the data item itself:
1.
var mySelectedDataItem = (MyDataType)
this
.playersGrid.SelectedItem;
2.
var textForTextBox = mySelectedDataItem.Property1.ToString() + mySelectedDataItem.Property2.ToString();
If that is not convenient you can always get the container for this data item and go thought all cells:
var selectedRow = (GridViewRow)
.playersGrid.ItemContainerGenerator.ContainerFromItem(
.playersGrid.SelectedItem);
var textForTextBox =
""
;
3.
4.
foreach
(GridViewCell cell
in
selectedRow.Cells)
5.
{
6.
textForTextBox += cell.Value;
7.
}
(MyDataType)
.playersGrid.SelectedItem" is oke