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

How do I obtain the value in a cell for a selected Row?

6 Answers 470 Views
VirtualGrid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 16 Aug 2016, 07:36 PM

I want the cell value from RadVirtualGrid as the user selects a row.

 

I don't have multi-select enabled.... And, I have row select.... So, there should be only one row selected at a time.

 

I'd like the text or number that appears in one of the columns. For example, the text value of the first column (0)

 

How is this obtained?

6 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 17 Aug 2016, 12:24 PM
Hello Robert,

Thank you for writing. 

You can't extract the cell value directly from RadVirtualGrid. You can get the row/column index of the selected cell/row and thus extract the required data from the DataSource. Additional information about RadVirtualGrid's selection is available here: http://docs.telerik.com/devtools/winforms/virtualgrid/selection/selection

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Garrett
Top achievements
Rank 1
answered on 17 Jul 2017, 08:44 PM

It would be great if you responded with an example.

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 18 Jul 2017, 11:03 AM
Hello Garrett, 

Thank you for writing.  

I have attached a sample project demonstrating how to extract a cell's value from the external source directly.

I hope this information helps. Should you have further questions I would be glad to help.

 Regards,
Dess
Progress Telerik
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.
0
Aseman
Top achievements
Rank 1
Veteran
answered on 15 Jan 2020, 03:27 PM

Hello Dess

How Can I Get Selected RowS In Grid?

thank you

0
Aseman
Top achievements
Rank 1
Veteran
answered on 19 Jan 2020, 06:15 AM

Isn`t  there any body to Solve My problem after A couple of weeks? :(

 

I`d like to get Selected RowS in Virtual Grid?

thank you

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 20 Jan 2020, 08:57 AM

Hello, Aseman,     

Note that most of the forum threads are reviewed by Telerik representatives and sometimes we address the questions asked by our customers in the forums as well. However, a post in the forum doesn't guarantee you a response from the Telerik support team. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread. Thank you for your understanding.

As to the question at hand, note that RadVirtualGrid offers SelectedRegion which returns the first selected region and SelectedRegions which returns all selected regions. Additional information about the selection API in RadVirtualGrid is available in the online documentation:
https://docs.telerik.com/devtools/winforms/controls/virtualgrid/selection/selection 
https://docs.telerik.com/devtools/winforms/controls/virtualgrid/selection/multi-select 
https://docs.telerik.com/devtools/winforms/controls/virtualgrid/selection/selecting-progrmmatically   

I hope this information helps.

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
VirtualGrid
Asked by
Robert
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Garrett
Top achievements
Rank 1
Aseman
Top achievements
Rank 1
Veteran
Share this question
or