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

radGridView.DetailsColumn

6 Answers 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 30 Dec 2010, 06:41 PM
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.

6 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 30 Dec 2010, 11:32 PM
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
0
Mark
Top achievements
Rank 1
answered on 30 Dec 2010, 11:34 PM
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.
0
Richard Slade
Top achievements
Rank 2
answered on 30 Dec 2010, 11:38 PM
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
0
Stefan
Telerik team
answered on 04 Jan 2011, 10:30 AM
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.
0
Curtis
Top achievements
Rank 1
Veteran
answered on 01 Dec 2017, 07:44 AM

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

0
Hristo
Telerik team
answered on 05 Dec 2017, 11:06 AM
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.
Tags
GridView
Asked by
Mark
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Stefan
Telerik team
Curtis
Top achievements
Rank 1
Veteran
Hristo
Telerik team
Share this question
or