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

Radgridview Selection extended

1 Answer 17 Views
GridView
This is a migrated thread and some comments may be shown as answers.
enrique
Top achievements
Rank 1
enrique asked on 20 Mar 2014, 01:42 PM
Hello,
As I can do to select cells, rows and columns, in the same way as in excel. I've only managed to select cells or entire rows
I have not found an example of how to do it
Thanks

1 Answer, 1 is accepted

Sort by
0
Ralitsa
Telerik team
answered on 25 Mar 2014, 09:19 AM
Hi Enrique,

Thank you for contact us. 

1. RadGridView supports single and multiple selection. If you want to select more than one row/cell you need to set MultiSelect property to true
radGridView1.MultiSelect = true;

2. You can set the SelectionMode property to FullRowSelect or CellSelect : 
radGridView1.SelectionMode = GridViewSelectionMode.FullRowSelect;

3. You can use and rectangle selection when set ShowTranslucentSelectionRectangle property to true
radGridView1.TableElement.ShowTranslucentSelectionRectangle = true;

4. You can call SelectAll method to select all cells in the RadGridView: 
this.radGridView1.SelectAll();

More about selection you can find in our documentation for RadGridView, section Selection - Basic SelectionMultiple Selection and Selecting Rows and Cells Programmatically

You can refer to QSF where you can find an example which demonstrates you the selection options.  The location where you can find it is: START >> All Programs >> Telerik >> UI for WinForms [version] >> Examples >> C# for Visual Studio 2010 >> Open C# Demo Application in Visual Studio - UI for WinForms. The example for selection is in GridView >> Selection

Let me know if you have any other questions.

Regards,
Ralitsa
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
GridView
Asked by
enrique
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Share this question
or