DataGridView Methods
A data grid view.
Name | Description |
---|---|
Apply |
Applies all the current bindings to Binding |
Batch |
Signals the start of a batch of changes to the elements properties. This can benefit performance if a bigger number of property values are changed.
Inherited from Visual |
Batch |
Signals the end of a batch of commands to the element and that those commands should now be committed.
Inherited from Visual |
Begin |
Locks the grid to prevent its visual updates until the End |
Calc |
Calculates the best-fit width for all columns or for the specified column asynchronously. The Calc method returns Task that completes when the column width calculates.
|
Change |
Changes the current visual state based on this elements current property values.
Inherited from Visual |
Clear |
Clears the filter that is set in the auto filter row. To specify the column, pass the column object to the method parameters. |
Clear |
Clears the filter that is set in the auto filter row. To specify the column, pass its underlying field’s name to the method parameters. |
Clear |
Resets Filter |
Clear |
Resets Filter |
Clear |
Clears the filter applied to data in the grid. |
Clear |
Ungroups data in the grid. |
Clear |
Clears the sorting applied to the grid. |
Clear |
Clears any value that is previously set for a bindable property.
Inherited from Bindable |
Clear |
Clears any value that is previously set for a bindable property, identified by its key.
Inherited from Bindable |
Close |
Closes a cell in-place editor. |
Coerce |
Coerces the value of the specified bindable property.
This is done by invoking Bindable |
Coerce |
Coerces the value of the specified bindable property.
This is done by invoking Bindable |
Collapse |
Collapses all groups of rows. |
Collapse |
Collapses the specified group of rows. |
Delete |
Deletes the specified data row. |
Effect |
For internal use by .NET MAUI. Inherited from Element. |
End |
Unlocks the grid after the Begin |
Equals |
Determines whether the specified object instances are considered equal.
Inherited from System. |
Equals |
Determines whether the specified object is equal to the current object.
Inherited from System. |
Expand |
Expands all groups of rows. |
Expand |
Expands the specified group of rows. |
Find |
Returns the element that has the specified name. Inherited from Element. |
Find |
Returns the handle of the Data |
Find |
Returns the handle of the first row that matches the specified criteria. |
Find |
Searches for the value in the column and returns the handle of the corresponding row. |
Focus() |
Attempts to set focus to this element.
Inherited from Visual |
Get |
Gets the text displayed within the specified cell. |
Get |
Gets the text displayed within the specified cell. |
Get |
Returns the value of the specified data cell. |
Get |
Returns the value of the specified data cell. |
Get |
Gets the child elements that are visually beneath the specified point .
Inherited from View. |
Get |
Returns the number of data rows in a specific group. |
Get |
Returns the handle of a row at the specified position within the specified group. |
Get |
Returns an actual or formatted value displayed in the specified group row (group header). |
Get |
Returns a summary value calculated against the specified group of rows. |
Get |
Returns an actual value displayed in the specified group row (group header). |
Get |
Serves as the default hash function.
Inherited from System. |
Get |
Returns the group row handle that identifies the group to which the specified data row belongs. |
Get |
Returns the handle of the row that corresponds to the specified record in the data source. |
Get |
Returns a row’s handle by its visible index. |
Get |
Returns an object that represents a record in the grid’s underlying data source. |
Get |
Returns the data source object by its index. |
Get |
Gets the index of the data source record to which the specified row handle corresponds. |
Get |
Returns the row’s position within a Data |
Get |
Returns the collection of selected row handles. |
Get |
Returns the value of the specified total summary item. |
Get |
Gets the Type of the current instance.
Inherited from System. |
Get |
Returns the value that is contained in the given bindable property.
Inherited from Bindable |
Group |
Groups data in the grid by the specified column. |
Group |
Groups data in the grid by the specified column. |
Initialize() |
Initializes the Data |
Invalidate |
Marks the current measure of an element as invalidated.
Inherited from Visual |
Invalidate |
Invalidates the measure of an element.
Inherited from Visual |
Invalidate |
Provides a way to allow subclasses (e. |
Is |
Indicates whether the specified group row is collapsed. |
Is |
Checks whether the specified row is a group row. |
Is |
Determines whether or not a bindable property exists and has a value set.
Inherited from Bindable |
Measure |
Returns the minimum size that an element needs in order to be displayed on the device.
Inherited from Visual |
Measure |
Allows subclasses to implement custom Measure logic during a controls measure pass.
Inherited from Visual |
Memberwise |
Creates a shallow copy of the current Object.
Inherited from System. |
Merge |
Combines the specified filter with the grid’s current filter with the AND operator.
|
Merge |
Combines the specified filter with the grid’s current filter with the AND operator.
|
IElement |
For internal use by .NET MAUI. Inherited from Element. |
Move |
Moves the row with the specified index to the specified position within the Data |
On |
Invoked when a child object is added to this element.
Inherited from Visual |
On |
Invoked when a child object is removed from this element.
Inherited from Visual |
On |
Raises the Children |
On |
Method that is called when a layout measurement happens.
Inherited from Visual |
On |
Raises the Property |
Open |
Invokes an in-place editor for the specified cell. |
Reference |
Determines whether the specified Object instances are the same instance.
Inherited from System. |
Refresh |
Updates the grid’s data. |
Refresh |
Refreshes the row specified by its handle. |
Remove |
Removes a previously set binding from a bindable property.
Inherited from Bindable |
Remove |
Removes a previously set dynamic resource. Inherited from Element. |
Scroll |
Makes the specified column visible onscreen. |
Scroll |
Makes the specified column visible onscreen. |
Scroll |
Scrolls the grid to make the specified row visible. |
Set |
Assigns a binding to a bindable property.
Inherited from Bindable |
Set |
Sets the specified cell’s value. |
Set |
Sets the specified cell’s value. |
Set |
Sets the Bindable |
Set |
Sets the inherited context to a nested element.
Inherited from Bindable |
Set |
Sets the value of the specified bindable property.
Inherited from Bindable |
Set |
Sets the value of the specified bindable property.
Inherited from Bindable |
Set |
For internal use by the Microsoft. |
Set |
For internal use by .NET MAUI. Inherited from Element. |
Set |
For internal use by .NET MAUI. Inherited from Element. |
Show |
Invokes an edit form for a Data |
Show |
Invokes a view form for a Data |
Show |
Invokes a form used to create a new Data Grid View item. |
Show |
Invokes the form that allows users to filter Data |
Size |
Method that is called during a layout cycle to signal the start of a sub-tree layout.
Inherited from Visual |
Sort |
Sorts data by values of the specified column in the specified order, and places the column at the specified position among the sorted columns. |
Sort |
Sorts data by values of the specified column in the specified order, and places the column at the specified position among the sorted columns. |
To |
Returns a string that represents the current object.
Inherited from System. |
Unapply |
Removes all current bindings from the current context.
Inherited from Bindable |
Unfocus() |
Unsets keyboard focus on this element.
Inherited from Visual |