This is a migrated thread and some comments may be shown as answers.

Cell value from GridView to textbox

1 Answer 228 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mahir
Top achievements
Rank 1
Mahir asked on 06 Jan 2017, 08:11 AM

First of all, hello guys/girls.

I've searched google and telerik forums to try to fix my problems but I wasnt that lucky, so maybe someone can point the right way for me.

I'm working in Visual Studio 2015 enterprise  / Visual Basic 

 

My first problem is : I want to export selected rows from radgridview into excel, I've searched and tested almost everything that I've found on the google and nothing worked for me. Can you please help ?

My second problem is : I have to displey a cell value from selected row into radtextbox. Also tryed with google and didnt found any solution.

Thank You very much.

All the best in 2017, may all your wishes come true.

 

PS. I've tryed the same code I've used with vs datagridview but it doesnt work.

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 06 Jan 2017, 09:56 AM
Hi Mahir,

Thank you for writing. 

1. There is no built-in method for this. To achieve it you need to use the RadSpreadProcessing library. An example that shows how you can manually export the rows is available in our demo application (see attached image).

2. You can use the CurrentCellChanged event:
Private Sub RadGridView1_CurrentCellChanged(ByVal sender As Object, ByVal e As CurrentCellChangedEventArgs)
    Dim value = e.CurrentCell.Value
    radTextBox1.Text = value.ToString()
End Sub

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Mahir
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or