This example shows how to add an unbound column ( Total) to the grid to calculate each order amount according to the expression: UnitPrice*Quantity. The code sample below demonstrates how to add an unbound column that retrieves data using a delegate method. An order has the Product.Name, Product.UnitPrice and Quantity fields. ExampleĪssume that the DataGridView instance is bound to a collection of orders. To get the data of the processed row or assign a value to any field in this row, use the Item property. The Column property returns the currently processed unbound column. Use the IsGetData and IsSetData properties to determine whether the event handler should provide data for or save data from an unbound column. The DataGridView.CustomUnboundColumnData event allows you to populate unbound columns with data and save data values modified in unbound columns back to the data source. Disclaimer: The information provided on and its affiliated web properties is provided 'as is' without warranty of any kind.Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. GridColumnDataEventArgs is the data class for the following events: Xamarin UI Controls (FREE).NET MAUI (FREE) Web Controls.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |