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

In Hierachy Grid...Dont know how to hide the data key Fields...

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 26 Jun 2013, 02:08 PM
I am building a hierarchy grid... with Some internal Data structure... having multiple data key fields...
the hierachy works perfectly .. but  a place holder for each data key are created.. and  if they are not added to the column then,
the class.tostring() is called and displayed...

How do make sure the properties/datakeys doesnt get displayed...

The attached PNG will show what i am talking about...

here are the aspx file and cs file needed to understand what i am saying...

DataAccess.cs file..
https://docs.google.com/file/d/0B8irPIpOgH_mNEZjcmhIQkNPQk0/edit?usp=sharing

TestGrid_new.aspx.cs file (this dynamically adds the datasource to the grid... this creates the hierarchy dynamically)
https://docs.google.com/file/d/0B8irPIpOgH_maVQ4T1hvNXU5UE0/edit?usp=sharing

TestGrid_New.aspx (all this has the definition of the Radgrid)
https://docs.google.com/file/d/0B8irPIpOgH_meV9Mc3lyUEprdXc/edit?usp=sharing


1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 01 Jul 2013, 07:17 AM
Hello,

In order to achieve your goal you need to follow the steps described in this help topic. When you want to use programmatic binding for hierarchical structure of RadGrid you need to use DetailTableDataBind event as explained in the above document.

Regards,
Andrey
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or