Click here to Skip to main content
15,909,835 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Dataset vs Customcollection Pin
ToddHileHoffer24-Feb-09 10:35
ToddHileHoffer24-Feb-09 10:35 
QuestionActivation Code... Pin
sitnet24-Feb-09 8:47
sitnet24-Feb-09 8:47 
AnswerRe: Activation Code... Pin
Christian Graus24-Feb-09 9:21
protectorChristian Graus24-Feb-09 9:21 
QuestionASP.net Pin
Suchinthaka24-Feb-09 6:19
Suchinthaka24-Feb-09 6:19 
AnswerRe: ASP.net Pin
varsha dixit24-Feb-09 7:04
varsha dixit24-Feb-09 7:04 
GeneralRe: ASP.net [modified] Pin
ToddHileHoffer24-Feb-09 8:28
ToddHileHoffer24-Feb-09 8:28 
GeneralRe: ASP.net Pin
Yusuf24-Feb-09 11:33
Yusuf24-Feb-09 11:33 
GeneralRe: ASP.net Pin
ToddHileHoffer24-Feb-09 12:59
ToddHileHoffer24-Feb-09 12:59 
AnswerRe: ASP.net Pin
Christian Graus24-Feb-09 8:28
protectorChristian Graus24-Feb-09 8:28 
QuestionMDB view thru browser Pin
Civic0624-Feb-09 5:55
Civic0624-Feb-09 5:55 
AnswerRe: MDB view thru browser Pin
Jon Rista24-Feb-09 6:17
Jon Rista24-Feb-09 6:17 
GeneralRe: MDB view thru browser Pin
Christian Graus24-Feb-09 8:29
protectorChristian Graus24-Feb-09 8:29 
GeneralRe: MDB view thru browser Pin
Jon Rista24-Feb-09 8:46
Jon Rista24-Feb-09 8:46 
GeneralRe: MDB view thru browser Pin
Christian Graus24-Feb-09 9:36
protectorChristian Graus24-Feb-09 9:36 
GeneralRe: MDB view thru browser Pin
Jon Rista24-Feb-09 12:30
Jon Rista24-Feb-09 12:30 
GeneralRe: MDB view thru browser Pin
Civic0624-Feb-09 12:48
Civic0624-Feb-09 12:48 
GeneralRe: MDB view thru browser Pin
Jon Rista24-Feb-09 17:05
Jon Rista24-Feb-09 17:05 
QuestionImage Control Question Pin
Aptiva Dave24-Feb-09 5:47
Aptiva Dave24-Feb-09 5:47 
AnswerRe: Image Control Question Pin
Christian Graus24-Feb-09 8:30
protectorChristian Graus24-Feb-09 8:30 
AnswerRe: Image Control Question Pin
ToddHileHoffer24-Feb-09 8:33
ToddHileHoffer24-Feb-09 8:33 
QuestionDeveloping a discussion forum for my website Pin
nainakarri24-Feb-09 5:07
nainakarri24-Feb-09 5:07 
AnswerRe: Developing a discussion forum for my website Pin
Ennis Ray Lynch, Jr.24-Feb-09 5:11
Ennis Ray Lynch, Jr.24-Feb-09 5:11 
GeneralRe: Developing a discussion forum for my website Pin
nainakarri25-Feb-09 5:47
nainakarri25-Feb-09 5:47 
QuestionCreating child controls dynamically at runtime on clicking linkbutton in repeater control Pin
nainakarri24-Feb-09 4:57
nainakarri24-Feb-09 4:57 
QuestionGeneric Data Access Object Pin
snouto24-Feb-09 3:07
snouto24-Feb-09 3:07 
In MVC , we create a business object that represents a table fields may be with the same column names or with other names then create public properties to get and set those values .

that is totally fine until now .

then i want to display that Object in a grid , i will assign the datasource property to a ILIST,Ienumerable,IDataSource object like for example List< of One business objects > then the grid will iterate through the collection of objects getting every object and accessing the properties names that will reflect the column names in the grid , and the values of those properties will be assigned to the column values in the grid

like for example


// we have this business object
public class Customer
{
string FName;
string LName;

public string FirstName
{
get { return this.FName;}
set { this.FName = value;}
}
public string LastName
{
get { return this.LName;}
set { this.LName = value;}
}

}


now to display that class to the grid i will put it into a list for example then
the grid will iterate through the list , reading each object public properties to draw the column names
the grid will have the same column names like the public properties


then accessing these properties values to display it to the grid .

i need to make a business object to be displayed in the grid but the problem is that the business object in my task doesn't have public properties , the public properties are replaced with a data structure that reads the table schema , "Generic Business Object" that is modifiable according to the table schema inside the data base

but finally i need to display each Generic Object to the data source controls like grid

Human knowledge belongs to the world.

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.