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

Basic Radgrid Cell Manipulation

5 Answers 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 07 Dec 2011, 10:09 PM
Hello,

I was going through the course documentation and searched through the forums a bit but can't find anything telling how to do basic cell manipulation of the radgrid (which means I probably overlooked something or this is so basic, it's not covered).  

So, if in vb.net I wanted to move something from column 1 row 4 to column 2 row 5 of a grid we'll call "VoltageGrid", is there an easy command to do that?  Do I have to give each cell a unique name in order to do this?  I know in basic gridview (the standard grid), it would look like this:

VoltageGrid.Rows.Item(2).Cells(5).Value = VoltageGrid.Rows.Item(1).Cells(4).Value

Could someone let me know a) how to do this and b) where I can find this info so I don't have to bug anyone with basics of these grids?  I can go back to using just the standard vb.net but it sounds like there are a lot of good features in telerik's grid.  I just need to learn how to use them.  Thanks!

-Jay

5 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 08 Dec 2011, 04:55 PM
Hello Jeremy,

You can find the answer to your question in the support ticket you have submitted about the same topic.

I am posting the answer here in case someone else is interested in the topic:
Thank you for contacting us. We try to keep our API similar to the API of MS DataGridView to allow easy migration. However, sometimes we change the interface to make it easier. You can do the same with RadGridView with the following code:

VoltageGrid.Rows(2).Cells(5).Value = VoltageGrid.Rows(1).Cells(4).Value

Find more about RadGridView in our online documentation and check the examples in our demo application. If you need further assistance, we will be glad to help.

All the best,
Nikolay
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

0
Jeremy
Top achievements
Rank 1
answered on 08 Dec 2011, 05:33 PM
Nikolay,

Thank you for the quick response.  I would have thought that would have been the FIRST thing I tried but I guess not . . . :p

Regardless, regarding the second part of my question, is this documented anywhere?  Is there anywhere I could have looked to get this answer?  I want to be able to answer these kind of questions myself in the future so I don't have to bug people in the forums/support and have a day or two turnaround time before a response, if possible.  Thanks!

-Jay
0
Nikolay
Telerik team
answered on 08 Dec 2011, 06:08 PM
Hello Jeremy,

Thank you for writing back.

The topic of accessing objects from Rows and Cells collections is discussed in this article.

If you do not manage to find something in our documentation, do not hesitate to contact us.

Regards,
Nikolay
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

0
Jeremy
Top achievements
Rank 1
answered on 08 Dec 2011, 07:23 PM
Nikolay,

You are my hero right now.  I was looking for these basics and clearly was in the wrong section (I was in the coursework section and it went way over my head without understanding the basics!).  Thanks for all your help and your quick response!

-Jeremy
0
Nikolay
Telerik team
answered on 13 Dec 2011, 12:42 PM
Hi Jeremy,

Thank you for this feedback.

I am glad to hear that I could be of help. Indeed, you can follow our Courseware, but you can find greater information about our suite in our online product doucumenation which is updated on weekly basis.

All the best,
Nikolay
the Telerik team

Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

Tags
GridView
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Jeremy
Top achievements
Rank 1
Share this question
or