![]() ![]() To cancel the addition of a new row, users can press Esc. This row is identified by an asterisk (*) displayed within a corresponding row indicator cell. The Data Grid can display an empty row that enables users to add new records. This class must have an empty default constructor. Instead, you need to create a class with one property of this required simple type. ![]() Note that Lists with simple type objects (for example, List) are not supported. ![]() Similarly, if a Data Grid is bound to a data source that implements the IBindingList interface, the availability of row operations depends on the Boolean AllowNew and AllowRemove settings. For example, the ExcelDataSource is a read-only data source, so data in a grid bound to this source cannot be edited. You and your users can add and remove Data Grid rows only if your data source has such API. The Data Grid uses methods of the data source assigned to the DataSource property to add and remove rows. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |