Hi Experts
I am new to Infragistics, and just started using UltraWinGrid. And, i want to check if its possible to add UltraWinGrid(UWG) within UWG? If yes, then how its done.
Any help would be appreciated.
Thanks
Amit Govil
Yes; you could use the UltraControlContainerEditor control to host one grid and assign that editor to a cell so that it displays the nested grid.
Can you give me an example on how to make a parent child relationship in ultrawingrid(UWG).
What i want to do is, i have a UWG with all the employees detail with EmployeeID as well. And for each EmployeeID, i have Leave detail in another table. So the end result would be a Parent UWG with all the employee detail with EmployeeID and a child UWG with leavedetail for each Employee in Parent UWG.
How to do this?
The easiest way to set up hierarchical data in the WinGrid is to bind it to a hierarchical data source. There are a number of data sources you could use, such as UltraDataSource, or a BindingList<T>, but the most common is the DataSet class. What you do is define a DataSet with the two tables and a Relationship and then bind the grid to the table you want as the root.
There are step-by-step instructions on how to do this in online help. Here's a link to the topic.
Mike,
I followed the steps in your link above - in design mode, clicking the plus expands the details, but when I run the application, clicking on the plus sign does nothing but make the plus sign disappear.
Any suggestions?
Thanks,
David
Hi David,
At design-time, the grid will display some fake data. At run-time, if you click the expansion indicator and it just disappears, it means that the row you clicked on does not have any child rows in the data source. So if you are certain that the row you clicked is supposed to have child data, then something is not set up correctly in your data source.