Hi.
I have a class that has other classes as property in it.
I want to create a list from this class and display the list in the grid (as in the attached excel example).
Which tool should I use?
The "Incentive" class I want to use.
namespace Models.Domain
{
public class Incentive
{
public string Tckn { get; set; } = string.Empty;
public Ysys Ysys { get; set; } = new Ysys();
public Abyob Aybob { get; set; } = new Abyob();
public Oybyu Oybyu { get; set; } = new Oybyu();
public Yybyu Yybyu { get; set; } = new Yybyu();
public Yuoa Yuoa { get; set; } = new Yuoa();
public Uidd Uidd { get; set; } = new Uidd();
}
public class Kanunlar
{
public string ts { get; set; } = string.Empty;
public string ios { get; set; } = "0";
}
public class Ysys : Kanunlar { } // 2828
public class Abyob : Kanunlar { } //6111
public class Oybyu : Kanunlar { } // 17103
public class Yybyu : Kanunlar { } // 27103
public class Yuoa : Kanunlar { } // 7316
public class Uidd : Kanunlar { } // 3294
}
I want to create a view like this in GridView:
Can I do this with GridView or is there another tool I can use? Thank you in advance for your help.