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.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI for UI
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI Tools
CMS
Free Tools
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