|
-
Jan 30th, 2012, 04:12 PM
#5
New Member
Re: Moving Rows in Datagridview
Change the top of Sub Swap Rows.
So now if you selected on a cell it works. Instead of having to select the Entire row.
Private Sub swapRows(ByVal range As mode)
If Not DataGridView1.Rows(DataGridView1.CurrentCellAddress.Y).Selected Then DataGridView1.Rows(DataGridView1.CurrentCellAddress.Y).Selected = True
Dim iSelectedRow As Integer = DataGridView1.CurrentCellAddress.Y
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|