I have a wingrid where i need to add column dynamically.I have 2 buttons on the page, on clicking on one button it should add a column of dropdown column after the last column and if the second button is clicked i need to add a complex column in which ( the header is one dropdown and the bellow it 5 columns that correspond to that column only.it looks like a table under the header of the column).In this way i should be able to add columns dynamuically.The first simple column am able to implement.
can u please suggest me how can i implement this?
can i use multi bands? if so how to use?or can i implement the second button functionality by merging the cells of the first row?
I'm having a hard time understanding your question. To add a column to the grid, you use the band.Columns.Add method on the band. To add a dropdown, you can use the ValueList property of the column. Here's a KB article with more info: HOWTO:What is the best way to place a DropDown list in a grid cell?
After that, you lost me.