radGridView.DetailsColumn

7 posts, 0 answers
  1. Mark
    Mark avatar
    34 posts
    Member since:
    Dec 2010

    Posted 30 Dec 2010 Link to this post

    I'm trying to set a column to be the row's detail column.  I am having trouble using the code as implemented in the demo.

                this.radGridView.DetailsColumn = this.radGridView.Columns["Notes"];

    I am getting the error that the radgridview object does not contain detailscolumn.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 30 Dec 2010 Link to this post

    Hi Mark,

    Have a look at my Code Library Project which gives an extended version of the RadDetailsGrid and is available in both C# and VB.NET. You can use it as a control to just drag on like a standard RadGridView and you just need to tell it your Details column,

    Hope that helps but let me know if you have any questions
    Richard
  3. Mark
    Mark avatar
    34 posts
    Member since:
    Dec 2010

    Posted 30 Dec 2010 Link to this post

    Thanks,
    I'll give it a look on Monday, I'm creating the grid at runtime for now, but the design view is nice to have, too.
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 30 Dec 2010 Link to this post

    Hi Mark,

    Ok, let me know how you get on. You can still instantiate this grid and build it at runtime and use t as a standard radgridview if you so wish too.
    Have a good new year
    Richard
  5. Stefan
    Admin
    Stefan avatar
    2908 posts

    Posted 04 Jan 2011 Link to this post

    Hello Mark,

    Richard has pointed you to a very nice article that he had created. Do not hesitate to write back in case you need additional assistance.
     
    Best wishes,
    Stefan
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
  6. Curtis
    Curtis avatar
    63 posts
    Member since:
    Oct 2014

    Posted 01 Dec 2017 Link to this post

    This is a fantastic project to be sure but I had no end of problems getting it to work.  I don't use databound grids so that might be the root of the problem but I even went as far as creating dummy classes (like you have in your sample projects) and those didn't work.  Pretty soon, the very first cell of the very first row stopped displaying too.

    I'd be happy to send you my code but it's a virtual replica of your sample project - the only difference being I had 10 columns instead of 5 and of the 10 only 4 were "visible" so that might be the culprit.  Anyway I wanted to say thank you for this project because I'm sure once I become better than a Novice with the Grid control, i'll be able to debug whatever the issue is and figure out a work-around.

     

    Lastly - you should check to see if ColumnDetails is Nothing in ShowRowDetails property of GridViewRowDetailsExtended.  Anyone using this as their standard grid WITHOUT a detail column and this'll crash the ap:

    Change:

    Set(ByVal value As Boolean)
         m_ShowRowDetails = value
         Me.DetailsColumn.IsVisible = value
         TableElement.Update(GridUINotifyAction.Reset)
         TableElement.UpdateView()
    End Set

     

    To:

    Set(ByVal value As Boolean)
         m_ShowRowDetails = value
         If Not IsNothing(Me.DetailsColumn) Then Me.DetailsColumn.IsVisible = value
         TableElement.Update(GridUINotifyAction.Reset)
         TableElement.UpdateView()
    End Set

     

    Kindest regards and again, this is pretty outstanding (even with my issues, I'm fairly certain I'm the cause of the problems and not your modifications.)

    -C

  7. Hristo
    Admin
    Hristo avatar
    1494 posts

    Posted 05 Dec 2017 Link to this post

    Hi Curtis,

    Thank you for writing.

    I am glad that the suggested solution in the thread could fit your actual setup. In case you need further assistance on this matter you can open a support ticket and send us your project so that we can check it locally.

    I hope this helps. Let me know if you have other questions. 

    Regards,
    Hristo
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top