Click here to Skip to main content
15,887,214 members
Home / Discussions / WPF
   

WPF

 
QuestionHow using dataform and WCF Pin
Coban_22-Oct-10 2:56
Coban_22-Oct-10 2:56 
AnswerRe: How using dataform and WCF Pin
Abhinav S23-Oct-10 17:57
Abhinav S23-Oct-10 17:57 
QuestionProblem consuming a WCF service + Silverlight 4 Pin
CrafterIt22-Oct-10 2:01
CrafterIt22-Oct-10 2:01 
AnswerRe: Problem consuming a WCF service + Silverlight 4 Pin
SledgeHammer0122-Oct-10 6:41
SledgeHammer0122-Oct-10 6:41 
GeneralRe: Problem consuming a WCF service + Silverlight 4 Pin
CrafterIt26-Oct-10 3:17
CrafterIt26-Oct-10 3:17 
QuestionAssign Datagrid Value From Child Web Page To A Textbox In Parent Webform by silverlight Pin
ya_yayeeh21-Oct-10 22:44
ya_yayeeh21-Oct-10 22:44 
QuestionRowDetailsTemplate - Can't Edit Data [modified] Pin
eddieangel21-Oct-10 14:27
eddieangel21-Oct-10 14:27 
QuestionGridView displaying 2 columns with custom controls Pin
Gareth H20-Oct-10 3:03
Gareth H20-Oct-10 3:03 
I am new to WPF, so bear with him.

I want to have a GridView with 2 columns, displaying custom controls, which has X amount of rows.

The data i am given is in a list format, which i then need to display as follows: i want to insert item 1 in column 1 and item 2 in column 2 for row 1. And then item 3 in column 1 and item 4 in column 2 for row 2, and so on - (Think of it a bit like a photo gallery)

The custom control will display the details for each item, which i have already created.

The problem i have is, how do i bind the data to the GridView.

My initial idea was to split the data into rows, i.e.: have several lists, that contain 2 items. This allows me to know that item 1 is for column 1 and item 2 is for column 2, i can then work my way through all the lists and end up with all the rows populated with the custom controls.

However, i cant work out how to programmtically add a new row, which should have a control in each column.

Am i going about it the right way? Or barking up the wrong tree...

Hopefully i've made sense.

Cheers.
Regards,
Gareth.

(FKA gareth111)

AnswerRe: GridView displaying 2 columns with custom controls Pin
Gareth H20-Oct-10 23:08
Gareth H20-Oct-10 23:08 
AnswerRe: GridView displaying 2 columns with custom controls Pin
Gareth H21-Oct-10 6:12
Gareth H21-Oct-10 6:12 
QuestionHow to check if i'm in run-time or design time ? Pin
Yanshof20-Oct-10 3:03
Yanshof20-Oct-10 3:03 
AnswerRe: How to check if i'm in run-time or design time ? Pin
Gareth H20-Oct-10 3:53
Gareth H20-Oct-10 3:53 
QuestionHow to create a listview with multiple datatemplates Pin
Member 324168819-Oct-10 10:30
Member 324168819-Oct-10 10:30 
QuestionHow to change image\parameters on style definition ? Pin
Yanshof18-Oct-10 21:52
Yanshof18-Oct-10 21:52 
AnswerRe: How to change image\parameters on style definition ? Pin
Abhinav S19-Oct-10 3:55
Abhinav S19-Oct-10 3:55 
Questioncombo box items are not going up/down from keyboard arrow keys. Pin
SRKSHOME17-Oct-10 23:13
SRKSHOME17-Oct-10 23:13 
QuestionWPF MVVM design time data? Pin
SledgeHammer0117-Oct-10 19:42
SledgeHammer0117-Oct-10 19:42 
AnswerRe: WPF MVVM design time data? Pin
SledgeHammer0117-Oct-10 20:03
SledgeHammer0117-Oct-10 20:03 
QuestionA few newb MVVM (WPF) questions... Pin
SledgeHammer0117-Oct-10 16:53
SledgeHammer0117-Oct-10 16:53 
AnswerRe: A few newb MVVM (WPF) questions... Pin
Abhinav S17-Oct-10 18:17
Abhinav S17-Oct-10 18:17 
AnswerRe: A few newb MVVM (WPF) questions... Pin
Mycroft Holmes17-Oct-10 23:40
professionalMycroft Holmes17-Oct-10 23:40 
AnswerRe: A few newb MVVM (WPF) questions... Pin
Pete O'Hanlon18-Oct-10 0:32
mvePete O'Hanlon18-Oct-10 0:32 
GeneralRe: A few newb MVVM (WPF) questions... Pin
SledgeHammer0118-Oct-10 7:57
SledgeHammer0118-Oct-10 7:57 
GeneralRe: A few newb MVVM (WPF) questions... Pin
Pete O'Hanlon18-Oct-10 9:55
mvePete O'Hanlon18-Oct-10 9:55 
GeneralRe: A few newb MVVM (WPF) questions... Pin
SledgeHammer0118-Oct-10 10:37
SledgeHammer0118-Oct-10 10:37 

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.