- Home
- Forum
- Xamarin.Forms
- [GridComboBoxColumn] Always show the Arrow
[GridComboBoxColumn] Always show the Arrow
Hi,
Attachment: Arrow_GridComboBoxColumn_ac25fe20.rar
Is it possible to show the dropdown arrow in the cell all the time?
Attachment: Arrow_GridComboBoxColumn_ac25fe20.rar
Best regards,
Jason
Jason
SIGN IN To post a reply.
3 Replies
MK
Muthu Kumaran Gnanavinayagam
Syncfusion Team
February 10, 2020 08:59 AM UTC
Hi Yin,
Thank you for contacting Syncfusion support.
We have checked the reported query “Need to show SfComboBox arrow inside the Grid row template” from our side. We would like to let you know that the SfComboBox element will be loaded in the GridCell only when the SfDataGrid is in EditMode. So when tapping the next cell, the previous loaded SfComboBox element will be unloaded and loads the label element thereby ending the EditMode. So your requirement cannot be achieved using GridComboBoxColumn.
However you can achieve your requirement by loading the SfComboBox control inside the CellTemplate of GridTemplateColumn in SfDataGrid as like below.
Code example:
|
<sfgrid:SfDataGrid AllowEditing="True" NavigationMode="Cell"
AutoGenerateColumns="False"
ItemsSource="{Binding OrdersInfo}">
<sfgrid:SfDataGrid.Columns>
<sfgrid:GridTemplateColumn HeaderText="Ship Country"
MappingName="ShipCountry"
<sfgrid:GridTemplateColumn.CellTemplate>
<DataTemplate>
<combobox:SfComboBox SelectedItem="{Binding ShipCountry}" DataSource="{Binding CustomerNames, Source={x:Reference viewModel}}"/>
</DataTemplate>
</sfgrid:GridTemplateColumn.CellTemplate>
</sfgrid:GridTemplateColumn>
</sfgrid:SfDataGrid.Columns>
</sfgrid:SfDataGrid> |
For your reference, we have attached the working sample below and you can download it from the below link.
Please let us know if you require further assistance.
Regards,
G.Muthu kumaran.
YS
Yin Shun
February 10, 2020 07:47 PM UTC
Thanks G.Muthu kumaran,
That's really a great demo for me=)!
I've learn a lot from this. Thanks again!
Best regards,
Jason
Jason
FP
Farjana Parveen Ayubb
Syncfusion Team
February 11, 2020 09:20 AM UTC
Hi Yin,
Thanks for the update.
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you.
Regards,
Farjana Parveen A
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
YS Yin Shun
- Feb 9, 2020 03:27 PM UTC
- Feb 11, 2020 09:20 AM UTC