Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Telerik
Build great .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
Testing & Mocking
Debugging
Build JavaScript UI
Javascript
AI for Developers & IT
Ensure AI program success
AI Coding
Additional Tools
Enhance the developer and designer experience
UI/UX Tools
Free Tools
CMS
Support and Learning
Productivity and Design Tools
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