vb.net - How to display selected items in a DataGrid to a TextBox using VB.NEW and WPF -


i stuck might seem rather simple problem, using wpf vb.net 2010. populated datagrid data mysql database, want when click on specific row on datagrid, row content displayed in textbox, tried using vb.net winforms code doesn't seem work.

dim integer = dgvgrid.currentrow.index textbox1.text = dgvgrid.item(0, i).value 

that sample code i'd use in winforms please help!

i found how atlast,

dim row datarowview = ctype(datagrid1.selecteditem(0),datarowview) textbox1.text = string.format(trim(row("columnname").tostring 

columnname name of columnheader in datagrid


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -