You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can change the default static string of AddNewRow in datagrid by using the [SfDataGrid.AddNewRowText]() property. The `AddNewRowText` property has higher priority than the text that is localized in resx file.
59
59
@@ -84,7 +84,7 @@ public partial class MainPage : ContentPage
SfDataGrid allows you to set the default values for AddNewRow while initiating, through [AddNewRowInitiatingEventArgs.NewObject]() property in [SfDataGrid.AddNewRowInitiating]() event.
SfDataGrid control does not initiate values for complex properties defined in the data object. Hence, you need to initiate the default values for the complex properties externally by using the `SfDataGrid.AddNewRowInitiating` event.
You can commit or cancel the new record in AddNewRow by pressing the Enter and Esc key respectively. AddNewRow operations can be performed programmatically by using [DataGridAddNewRowController.CommitAddNew]() and [DataGridAddNewRowController.CancelAddNew]() methods at runtime.
162
162
163
-
## Cancel AddNewRow
163
+
###Cancel AddNewRow
164
164
165
165
{% tabs %}
166
166
{% highlight c# %}
@@ -178,7 +178,7 @@ if (this.dataGrid.View.IsAddingNew)
178
178
{% endhighlight %}
179
179
{% endtabs %}
180
180
181
-
## Commit AddNewRow
181
+
###Commit AddNewRow
182
182
183
183
{% tabs %}
184
184
{% highlight c# %}
@@ -208,7 +208,7 @@ if (this.dataGrid.View.IsAddingNew)
208
208
{% endhighlight %}
209
209
{% endtabs %}
210
210
211
-
# Customizing AddNewRow text using default resource file
211
+
##Customizing AddNewRow text using default resource file
212
212
213
213
SfDataGrid enables you to customize the watermark text of AddNewRow by changing value of AddNewRowText in Resource Designer.
214
214
@@ -218,11 +218,11 @@ To customize the AddNewRowText, add the default Syncfusion.SfDataGrid.WPF.resx f
You can enable the AddNewRow in `DetailsViewDataGrid` by specifying the position to `SfDataGrid.AddNewRowPosition` property in [ViewDefinition.DataGrid](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.DataGrid.ViewDefinition.html).
## Changing the AddNewRow default text in details view grid
369
+
###Changing the AddNewRow default text in details view grid
370
370
371
371
You can change the default static string of AddNewRow in details view grid by using the `SfDataGrid.AddNewRowText` property in `ViewDefinition.DataGrid`. The `AddNewRowText` property has higher priority than the text that is localized in resx file.
0 commit comments