How can remove the extra column in the dropdown. I have attached image for extra column.
OR
how can we hide the dividing line, so that it looks one field in a row.
Hello Gajender,
Thank you for your post. I have been looking into it and I created a sample project for you with the look you want to achieve. Basically I handled the ComboHeaderCellControl and ComboCellControl’s Loaded events and set their Visibility to Collapsed if they are the last ones. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Sincerely, Stefan, MCPD Developer Support Engineer Infragistics, Inc. www.infragistics.com/support
I have been looking into your code and I can say that it doesn’t work because the DataContext that comes in the DataTrigger isn’t ComboHeaderCellControl, so you can use the following Styles instead of yours:
<Style TargetType="{x:Type ig:ComboHeaderCellControl}"> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Content}" Value="{x:Null}"> <Setter Property="Visibility" Value="Collapsed"/> </DataTrigger> </Style.Triggers> </Style> <Style TargetType="{x:Type ig:ComboCellControl}"> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=HasContent}" Value="False"> <Setter Property="Visibility" Value="Collapsed"/> </DataTrigger> </Style.Triggers> </Style>
Hope this helps you.
Thanks for your answer Stefan. I am trying to make same thing work in styles, but does not work. Can you let know what I am missing here...
<Style TargetType="ig:ComboHeaderCellControl"> <Style.Triggers> <DataTrigger Binding="{Binding Path=Content, Mode=OneWay}" Value="{x:Null}"> <Setter Property="Visibility" Value="Collapsed"/> </DataTrigger> </Style.Triggers></Style>