BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
[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();
}
} …. |