<syncfusion:SfDataGrid x:Name="grid"
AllowGrouping="False"
AllowDraggingColumns="False"
AllowResizingColumns="True"
AutoGenerateColumns="False"
SelectionMode="Single"
AllowSorting="True"
AllowFiltering="True"
NavigationMode="Row"
Style="{StaticResource EddyfiBaseSfDataGridStyle}"
ItemsSource="{Binding Path=Messages}">
<syncfusion:SfDataGrid.Columns>
<syncfusion:GridTemplateColumn MappingName="Type" HeaderText="" ColumnSizer="SizeToHeader" x:Name="ColumnType"
AllowSorting="True" AllowFiltering="True" AllowEditing="False" AllowResizing="False" >
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<eddyfi:MultiSizeImage Source="{Binding Path=Type, Converter={StaticResource MessageTypeToImageConverter}}" />
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn>
<syncfusion:GridTextColumn MappingName="Number" HeaderText="" ColumnSizer="Auto"
AllowSorting="True" AllowFiltering="False" AllowEditing="False" AllowResizing="True" />
<syncfusion:GridTextColumn MappingName="DateTime" HeaderText="Date/Time" ColumnSizer="Auto"
AllowSorting="True" AllowFiltering="False" AllowEditing="False" AllowResizing="True" />
<syncfusion:GridTextColumn MappingName="Message" HeaderText="Message" ColumnSizer="Star"
AllowSorting="True" AllowFiltering="False" AllowEditing="False" AllowResizing="True" />
<syncfusion:GridTextColumn MappingName="Source" HeaderText="Source" ColumnSizer="Auto" x:Name="ColumnSource"
AllowSorting="True" AllowFiltering="True" AllowEditing="False" AllowResizing="True" />
</syncfusion:SfDataGrid.Columns>
</syncfusion:SfDataGrid>
</DockPanel>
</UserControl>
The control behaves correctly except when the number of rows creates a vertical scroll bar. The vertical scrollbar reduces the space available for the columns and, because of that, it created a horizontal scrollbar. Is there a way to "refresh" the column size in order to avoid the horizontal scrollbar from appearing?
Hi Charles,
Thank you for contacting Syncfusion Support.
We have tested the reported issue with our sample. But, we are unable to reproduce the issue. So could you please share the details like what are all the styles you are using to SfDataGrid? and please modify the sample based on your application along with the replication procedure? This would be helpful for further analysis. Please find the sample from the below attachment
Please let us know if you require further assistance.
Thanks,
Ashok
<syncfusion:IntegerTextBox
syncfusion:SkinStorage.EnableTouch="True" >
</syncfusion:IntegerTextBox >
In order to activate the touchmode?
Hi Charles,
We are sorry about the inconvenience caused.
We have analyzed your query but we are unable to understand your query clearly. So could you please share the details like, where you are enable the touch mode? within IntegerTextBox Or SfDataGrid? otherwise please modify our previously updated sample based on your application along with the replication procedure? This would be helpful for us to provide the exact solution to you.
Please let us know if you require further assistance.
Thanks,
Ashok