can't add the fields to a dataview

Posts   
 
    
ironcross
User
Posts: 31
Joined: 12-May-2006
# Posted on: 12-May-2006 12:28:27   

Hallo if i use customer.GetMulti(null); it adds all records to a view but i want to add my selected fields to a view in this case i can't use GetMulti can you help me? (my fields FirstName,LastName.......)

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 12-May-2006 14:38:45   

I guess you may go for one of these options:

1- If you are binding to a datagrid Build a DataGridTableStyle object to limit the fields that are displayed in the DataGrid control, or change the field order.

2- A DataView can be customized to present a subset of data from the DataTable. refer to the Remarks section in the following link. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadataviewclasstopic.asp

Implement a custom DataView Class refer to the following link: http://support.microsoft.com/default.aspx?scid=kb;en-us;325682

3- Use a TypedList, use the LLBLGen Pro to define the typedList fields.

ironcross
User
Posts: 31
Joined: 12-May-2006
# Posted on: 15-May-2006 12:57:10   

Very pity that it's didn't help

i writing this: PersonTableCollection personels=new PersonTableCollection(); personels.GetMulti(null); dataGridView1.DataSource = personels;

may be the has a options like that

   personels.GetMulti(xxx.firstaname,xxx.Lastname);

xxx-i don't nwo whatrage

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39912
Joined: 17-Aug-2003
# Posted on: 15-May-2006 14:22:40   

Do this using design time databinding.

Frans Bouma | Lead developer LLBLGen Pro
ironcross
User
Posts: 31
Joined: 12-May-2006
# Posted on: 15-May-2006 14:56:36   

OK i understand i jast wanna use GetMulti abilities