We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Row Copy

Thread ID:





19721 Oct 1,2004 04:47 PM UTC Oct 1,2004 07:39 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On October 1, 2004 04:47 PM UTC

I’m working on a form that has several command buttons and a grid in which each row represents a different “Source”. How can I, when a button is clicked, select the whole row and copy the contents of that row to the clipboard so that I can then paste that information to a new row (source)? I only want the row highlighted when the user clicks the button, other wise I need to allow the user to edit individual cells normally. Be aware that each row contains two read only cells, two combobox cells and three currency cells. Also that I am using Essential Grid, Grid control, version Visual Basic.NET

Administrator [Syncfusion]
Replied On October 1, 2004 07:39 PM UTC

Here is a button handler that will select the current row and copy it to the clipboard.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim row As Integer = Me.GridControl1.CurrentCell.RowIndex

        Me.GridControl1.Selections.SelectRange(GridRangeInfo.Row(row), True)

End Sub


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon