Basic Radgrid Cell Manipulation

6 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    3 posts
    Member since:
    Nov 2011

    Posted 07 Dec 2011 Link to this post

    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
  2. Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 08 Dec 2011 Link to this post

    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.

  3. Jeremy
    Jeremy avatar
    3 posts
    Member since:
    Nov 2011

    Posted 08 Dec 2011 Link to this post

    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
  4. Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 08 Dec 2011 Link to this post

    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.

  5. Jeremy
    Jeremy avatar
    3 posts
    Member since:
    Nov 2011

    Posted 08 Dec 2011 Link to this post

    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
  6. Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 13 Dec 2011 Link to this post

    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.

Back to Top