Cell value from GridView to textbox

2 posts, 0 answers
  1. Mahir
    Mahir avatar
    5 posts
    Member since:
    Jan 2017

    Posted 06 Jan 2017 Link to this post

    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.


  2. Dimitar
    Dimitar avatar
    2949 posts

    Posted 06 Jan 2017 Link to this post

    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.

    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.
Back to Top