Articles in this section
Category / Section

How to select all the rows including child row of GridDataBoundGrid using CTRL+A?

1 min read

To select entire table on pressing the CTRL+A short cut key, you should add GridRangeInfo.Table() to selections in key down event of WinForms GridDataBoundGrid. In the below example we have used gridDataBoundGrid1.KeyDown event and validated the keys using key code.


//To capture the key down event.
this.gridDataBoundGrid1.KeyDown += gridDataBoundGrid1_KeyDown; 
void gridDataBoundGrid1_KeyDown(object sender, KeyEventArgs e)
            if (e.Control && e.KeyCode == Keys.A)
                //Select all the rows
                e.Handled = true;



'To capture the key down event.
Me.gridDataBoundGrid1.KeyDown += gridDataBoundGrid1_KeyDown
Private Sub gridDataBoundGrid1_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
   If e.Control AndAlso e.KeyCode = Keys.A Then
 'Select all the rows
    e.Handled = True
   End If
End Sub



Table screenshot in WinForms GridDataBoundGrid



Hope you enjoyed learning about how to select all the rows including child row of GridDataBoundGrid using CTRL+A.

You can refer to our WinForms GridDataBoundGrid’s feature tour page to learn about its other groundbreaking feature representations. You can explore our WinForms GridDataBoundGrid documentation to understand how to present and manipulate data.

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms GridDataBoundGrid and other WinForms components.

If you have any queries or require clarifications, please let us know in the comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!







Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment