Winforms Datagrid New Row
-
I have an typed collection wich is bounded to datagrid control like this: dataGrid1.DataSource = collection; How to disable 'new row' in DataGrid ? --- object oriented uml oriented iconix oriented sql oriented truespace oriented --- solitare oriented :-)
-
I have an typed collection wich is bounded to datagrid control like this: dataGrid1.DataSource = collection; How to disable 'new row' in DataGrid ? --- object oriented uml oriented iconix oriented sql oriented truespace oriented --- solitare oriented :-)
-
CurrencyManager currencyManager = (CurrencyManager)this.BindingContext[this.dataTable]; if ( currencyManager != null ) { ((DataView)currencyManager.List).AllowNew = true; }
-
Hy, 10x for response, but I have a collection bounded to Datagrid control not a DataSet/DataTable object oriented uml oriented iconix oriented sql oriented truespace oriented --- solitare oriented :-)
I am using a collection called "GridLinkedListCollection" this.globalEntitySearchGrid.DataSource = this.linkedList; this.globalEntitySearchGrid.AllowNavigation = false; this.gridTableStyle = new DataGridTableStyle(); this.gridTableStyle.MappingName = "GridLinkedListCollection"; and the new row addition is disabled. Are you binding your DataGrid with code similar to above? Are you implementing IBindingList?
-
I am using a collection called "GridLinkedListCollection" this.globalEntitySearchGrid.DataSource = this.linkedList; this.globalEntitySearchGrid.AllowNavigation = false; this.gridTableStyle = new DataGridTableStyle(); this.gridTableStyle.MappingName = "GridLinkedListCollection"; and the new row addition is disabled. Are you binding your DataGrid with code similar to above? Are you implementing IBindingList?
Yes, indirectly. My collection is derived from CollectionTemplate (I use ORM.NET from Olero) base class collection witch implement IBindingList (is true). I just want that DataGrid to do not display new row. object oriented uml oriented iconix oriented sql oriented truespace oriented --- solitare oriented :-)
-
I am using a collection called "GridLinkedListCollection" this.globalEntitySearchGrid.DataSource = this.linkedList; this.globalEntitySearchGrid.AllowNavigation = false; this.gridTableStyle = new DataGridTableStyle(); this.gridTableStyle.MappingName = "GridLinkedListCollection"; and the new row addition is disabled. Are you binding your DataGrid with code similar to above? Are you implementing IBindingList?
This line ((DataView)currencyManager.List).AllowNew = true; generate an error: invalid cast ! 10x in advance --- object oriented uml oriented iconix oriented sql oriented truespace oriented --- solitare oriented :-) -- modified at 15:06 Thursday 8th September, 2005
-
Yes, indirectly. My collection is derived from CollectionTemplate (I use ORM.NET from Olero) base class collection witch implement IBindingList (is true). I just want that DataGrid to do not display new row. object oriented uml oriented iconix oriented sql oriented truespace oriented --- solitare oriented :-)
-
This line ((DataView)currencyManager.List).AllowNew = true; generate an error: invalid cast ! 10x in advance --- object oriented uml oriented iconix oriented sql oriented truespace oriented --- solitare oriented :-) -- modified at 15:06 Thursday 8th September, 2005