Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150324 | Jan 2,2020 08:09 AM UTC | Jan 3,2020 01:24 PM UTC | Xamarin.Forms | 1 |
![]() |
Tags: SfDataGrid |
[XAML]
….. <syncfusion:GridTemplateColumn.CellTemplate> <DataTemplate>
<Grid>
<Entry Text="{Binding Name}" TextChanged="Entry_TextChanged"></Entry> </Grid>
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
….. [.CS] ….. private void Entry_TextChanged(object sender, TextChangedEventArgs e) {
if (e.OldTextValue != null && e.NewTextValue != null && e.NewTextValue != e.OldTextValue)
{
//here grid.Columns[0] is the entry(Template column) column of SfDataGrid
grid.GridColumnSizer.ResetAutoWidth(grid.Columns[0]);
grid.GridColumnSizer.Refresh();
}
} …. |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.