Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
dynamically adding a button to child grid
posted

 I have tried to view onen sample, but found it hard to follow - sorry documentation would have been most helpful.

Anyway - I am trying to add a button to the child band - tried these two lines - but close.

A new column does get added but is just a text box - not a button.

any code changes/missing code would be helpful to get this to work -- THANKS

 

Dim ColumnTypeNames() As String = System.Enum.GetNames(GetType(Infragistics.Win.UltraWinGrid.ButtonDisplayStyle))

Me.UltraGrid1.DisplayLayout.Bands(1).Columns.Add(ColumnTypeNames(0))

  • 469350
    Offline posted

     Hi,

        I'm not sure I understand your question. You are adding a new, unbound column to the grid and passing in an array of strings as the name of the column - why? What are you expecting that to do? 

        If you want a button column in the grid, add an unbound column like you are doing (except you will probably want to give it a m0ore reasonable name). Then set the Style property on the column to Button.