Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to mark part of the image that appear on my application ? Pin
Luc Pattyn16-Aug-10 6:07
sitebuilderLuc Pattyn16-Aug-10 6:07 
GeneralRe: How to mark part of the image that appear on my application ? Pin
ignrod16-Aug-10 7:01
ignrod16-Aug-10 7:01 
Questionconnect to database using javascript Pin
SatyaKeerthi1516-Aug-10 1:28
SatyaKeerthi1516-Aug-10 1:28 
AnswerRe: connect to database using javascript Pin
OriginalGriff16-Aug-10 1:53
mveOriginalGriff16-Aug-10 1:53 
AnswerRe: connect to database using javascript Pin
Not Active16-Aug-10 2:03
mentorNot Active16-Aug-10 2:03 
AnswerRe: connect to database using javascript Pin
J4amieC16-Aug-10 3:57
J4amieC16-Aug-10 3:57 
AnswerRe: connect to database using javascript Pin
Ravi Sant14-Apr-11 1:29
Ravi Sant14-Apr-11 1:29 
QuestionHow to create Hierachy Grid from Objects Pin
Vimalsoft(Pty) Ltd15-Aug-10 23:30
professionalVimalsoft(Pty) Ltd15-Aug-10 23:30 
Good Day All

I have a Class that is defined like this

namespace EAVV
{
    public class EAV
    {

        private string _Attribute;
        private string _Value;



        public string Attribute
        {
            get
            {
                return _Attribute;
            }

            set
            {
                _Attribute = value;
            }

        }

        public string Value
        {
            get
            {
                return _Value;
            }
            set
            {
                _Value = value;
            }

        }

        public EAV(string AttributeEA, string ValueEA)
        {
            this._Attribute = AttributeEA;
            this._Value = ValueEA;

        }

        public EAV()
        {


        }

    }
}


And I have another one to process this like this

namespace EAVV
{
    public class EAVProcess
    {

        public List<EAV> GetRecords(List<string> ParentRecords,List<string> ChildRecords)
        {
          List<EAV> Final= new List<EAV>();

          for (int i = 0; i < ParentRecords.Count; i++)
          {

              for (int J = 0; J < ChildRecords.Count; J++)
              {
                  Final.Add(new EAV(ParentRecords[i], ChildRecords[J]));
              }
          }

          return Final;
        }

        public EAVProcess()
        {
        }
    }
}



And as you can see this will return a list. So I am binding my Grid(Telerik) which is the same as binding the normal asp.net grid like this

RadGrid1.DataSource = EAVobj.GetRecords(ParentRecordsRow, ChildRecordsField);
                 RadGrid1.DataBind();


And I get the Following Data
http://www.telerik.com/ClientsFiles/212012_grid-hierachy.JPG[^]

from the Image, You can see there is an Attribute Column and there is a Value Column, Now what i want to do is that i want to have only one Country and one Event in the Attribute and the Values must be nested underneath each other in a Grid, so basically i need a nested View and the Attribute is the parent and the Values will be grouped according to their parent.

Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: How to create Hierachy Grid from Objects Pin
Goutam Patra16-Aug-10 1:49
professionalGoutam Patra16-Aug-10 1:49 
GeneralRe: How to create Hierachy Grid from Objects Pin
Vimalsoft(Pty) Ltd16-Aug-10 2:03
professionalVimalsoft(Pty) Ltd16-Aug-10 2:03 
QuestionHow to do binding simple control and class Pin
Yanshof15-Aug-10 20:36
Yanshof15-Aug-10 20:36 
AnswerRe: How to do binding simple control and class Pin
Mycroft Holmes15-Aug-10 23:27
professionalMycroft Holmes15-Aug-10 23:27 
QuestionCheck for mysql installation Pin
sumit703415-Aug-10 20:32
sumit703415-Aug-10 20:32 
AnswerRe: Check for mysql installation Pin
Bernhard Hiller15-Aug-10 20:51
Bernhard Hiller15-Aug-10 20:51 
GeneralRe: Check for mysql installation Pin
sumit703415-Aug-10 21:11
sumit703415-Aug-10 21:11 
GeneralRe: Check for mysql installation Pin
Bernhard Hiller16-Aug-10 2:08
Bernhard Hiller16-Aug-10 2:08 
AnswerRe: Check for mysql installation Pin
Luc Pattyn16-Aug-10 0:04
sitebuilderLuc Pattyn16-Aug-10 0:04 
QuestionInherit an internal class to a public class Pin
amit sahu2015-Aug-10 20:02
amit sahu2015-Aug-10 20:02 
AnswerRe: Inherit an internal class to a public class Pin
OriginalGriff15-Aug-10 22:15
mveOriginalGriff15-Aug-10 22:15 
AnswerRe: Inherit an internal class to a public class Pin
Luc Pattyn16-Aug-10 0:09
sitebuilderLuc Pattyn16-Aug-10 0:09 
GeneralRe: Inherit an internal class to a public class Pin
amit sahu2016-Aug-10 0:13
amit sahu2016-Aug-10 0:13 
AnswerRe: Inherit an internal class to a public class Pin
Luc Pattyn16-Aug-10 0:39
sitebuilderLuc Pattyn16-Aug-10 0:39 
GeneralRe: Inherit an internal class to a public class Pin
amit sahu2016-Aug-10 1:02
amit sahu2016-Aug-10 1:02 
GeneralRe: Inherit an internal class to a public class Pin
OriginalGriff16-Aug-10 1:06
mveOriginalGriff16-Aug-10 1:06 
GeneralRe: Inherit an internal class to a public class Pin
Luc Pattyn16-Aug-10 1:14
sitebuilderLuc Pattyn16-Aug-10 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.