What i want is similar functionality like we have in Windows Datagridview.
But am not able to achieve the same using UltraGrid. I have Set the AllowAddNew to true but still it won't let me add new row. Then i changed "Show AddNew Box" to true, although now i can add rows but after click on add new box and this is weird. Can't it work the same way we use to add rows in Windows DGV(Rows get added after when we modify the last row)
Thanks
Amit
Hi Amit,
Set AllowAddNew to TemplateOnBottom instead of Yes.
Hi Mike,
I did exactly what you said, but it didn't worked for the existing ultragrid.
Then, i add a new ultragrid and did nothing in it except as you said and binded it to a datasource and that worked, but i don't understand why it didn't worked with the existing one.
The existing grid has 5 columns in it:
Below is the screenshot of it:
What do you mean when you say it didn't work? What didn't work? You are not seeing the TemplateAddRow at all? Or you see it but you cannot type into it? Or what?
If it's not showing up at all, then either something else in your code is overriding it after you set it or else your DataSource does not allow adding new rows.
You should check your code to make sure you are not setting AllowAddNew somewhere else. Also check to make sure you are not loading a layout into the grid (grid.DisplayLayout.Load...).
Yeah Mike! In the code, i was overriding it to AllowAddNew.Yes and forgot to comment it.
Thanks for the help!