Hello,
I want to have two grid rows for each data row, and hide the second row in 'expand' icon so that I only see the first row of each data row.
For example, I have a Task grid, and I have two rows for each task. The first row of each task has Subject, Date, and Customer columns, and the second row of each task has Description column.
I want to hide the second row in Expand icon so that I only see Subject, Date, and Customer columns unless I expand the second row. So the grid will look like a nested grid, but the nested row is not for child objects, but for the base object (Task).
I know how to make two grid rows in the designer, but I don't know how to add 'Expand' icon to hide the second row. Is there any way to do this?
Thanks!
The only way to show hierarchical data in the grid like this is to make your data source hierarchica. So you will have to build a data source for the grid that has the data in the structure you want here.
Hi Mike,
Quick question for you. How do you commit changes made from ultragrid to bound dataset without tabbing out of the row? If it really frustrating to have to be tabbing all the way to the end of the grid to commit the changes. Or even using the down arrows etc. I just want to be able to change the value of a cell and then just click the save button and the value entered saved.
Thanks for your help
I have another question for yah.
Is it possible to add a constraint to a column? For example, Lets say we have a grid with the following columns
Invoice No. Date Amount ---------------- ------- ------------
Invoice No. and Date has to be unique. So i would like to know if this constraint can be created instead of me having to loop through the grid.
Thanks much
Hey, Thanks Mike. I'll try your suggestion and get back to you ASAP
Hi,
If your button is an actual Button (or UltraButton), then you should not have to do anything. The grid will automatically commit the changes when it loses focus.
If by "button" you mean a toolbar button (which does not take focus), then you can call the grid.UpdateData method to commit any pending changes in the grid. There's also an Update method on the row in case you want to commit changes for only a single row.