hi , i am new to infragistic , actually i want to add rows at runtime how can i do that ?
and my second concern is that
i want to have 3 columns in grid and forth column which is a drop down ,
in first three columns i want to have user information like firstname , last name and age coming from
table user and in the drop down i want to have multiple activities coming from table activities , each user
may contain only one activity .i want to set my grid so that it shows my all the users with firstanme , last name and age in the first three columns and in the last column which wolud be a drop down i want to show activity of associated with each user and on the same grid i want to see users which dont have any activity so that i could assign them activity from the drop down , i hope you will understand , how can i do that ? thanks in advance , best regards .
thanks .
Hi,
The WinGrid must have a DataSource in order to function at all. But the DataSource can be any object which implements IBindingList or IList.
If you are not using a DataBase, then I recommend using the UltraDataSource component as your grid's DataSource. This component allows you to define your column structure and populate it with data right manually - you can even do it at design-time using the UltraDataSource designer.
sir i dont want to bind it with any data source , i want to create unbound columns and in a loop
i want to add rows , how can i do that ?
Your question is a bit open-ended, so it's hard to giv eyou a solution. Which part of this are you having trouble with?
To show a grid with any information in it, you need to bind the grid to a data source. There are numerous examples of this both in the NetAdvantage SDK, in the help, in the Infragistics Knowledge Base, and here on the forums.
There are also many examples of providing a dropdown list in the grid. This KB article should help you decide on the best approach for your application: HOWTO:What is the best way to place a DropDown list in a grid cell?