Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Show custom control containing databinding to 2 columns
posted

Hello!

I want to clarify on what I currently have:

I have a List of objects, lets call them Machineparts, bound to a grid control.

The machine parts have a few properties that are shown in the list.

Most notably are

MachinePartName and MachinePartSpecification. Booth are strings.

The MachinePartName is about 10 to max 30 characters long.

 The MachinePartSpecification is a long text (like 50 lines often...) and will be edited by the users. (its rtf text)

These are currently in rows next to eachother.

I really would like to have the MachinePartName show up above the MachinePartSpecification.

I found there are a few possible pathways/tools to accomplish this but I tried with a few of them and did not succeed.

I tried grouping but this was not alright.

I also loked into IUIElementCreationFilter but it seems there should be easier ways to implement this than drawing....

I made my own UserControl with 2 Texboxes on it. but i could not really embed it into the grid (not with a custom ControlContainerEditor nor with the default drag drop control container editor)

I didnt manage to bind the custom control to the list object.... eventhough https://es.infragistics.com/help/winforms/wincontrolcontainereditor is good documented.

Could you help with an example?

Id like to mention im currently on 19.1

Parents
No Data
Reply Children
No Data