Hi,
How to add rows in ultragrid. I have seen many posts here but nothing s wroking out for me. I have a ultragrid with two colums Thats it. NO binding or any such. I need rows to be added now.
In Windows.Grid the rows are added automatically, like that how to do in UltraGrid???
You need to allow adding rows by:
grid.DisplayLayout.Override.AllowAddNew = AllowAddNew.TemplateOnBottom;
but you can choose other ways to add rows. Look at the AllwAddNew enum.
I have a empty binding source now. Its connected to ultra grid .. I get a rowheader but no rows are present. How to add rows..
Thanks for ur help. Can u send me the coding for it. How to add rows, if suppose i just have u ultragrid with two colums (for eg : A & B)
You have to use binding. Each row you want to add has to be added to a data source like BindingList.
You can make a list of custom objects that each object has two properties like your columns and set this list as the grid data source.