I have created an ultragrid in windows C#. I have added 4 bounded columns at design time in Band 0.
In run time id did not show me any row. It has shown me only a header. In a normal grid it usually shows a single row.
How to add rows into a Ultagrid.
Please help. I am using C#, windows application
Thanks
It sounds like you want to set AllowAddNew (on the Override object) to TemplateOnBottom.
Hi,
Instead of using datasource, I want to iterate the collection and bind row by row to the wingrid.
How to bind rows to the wingrid programatically instead of binding through datasource.
Thanks in advance,
Sejal
UltraGridRow newRow = this.dgGrid.DisplayLayout.Bands[0].AddNew();CellsCollection newCells = newRow.Cells;newCells["Primary_ID"].Value = 123;newCells["Other_Detail_ID"].Value = xyz;
I dont know if you just want to add a row..here is some code.
The grid must be bound to a data source. There is no support for unbound rows.
You can use the UltraDataSource as the grid's DataSource, though. The UltraDataSource allows you to add rows to it manually.