Hi,
I'm having a bit of an issue adding a button row to my dashboard. I think my problem is that the dashboard has multiple tabs on it for different employees, so it has multiple grids. Is there a way to add a button to each grid without having to access each grid individually? I could see this getting ugly to maintain when we hire new employees or they quit or change departments. It won't be fun managing each individual tab when something changes.
I know this is how you would add the column with the initializelayout event of the grid if I was dealing with a single grid.
e.Layout.Bands(0).Columns.Add("Outsourced", "Outsourced")
e.Layout.Bands(0).Columns("Outsourced").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button
e.Layout.Rows.Band.Columns("Outsourced").ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always
e.Layout.Bands(0).Columns("Outsourced").Header.VisiblePosition = 0
Thanks,
Ted
I'm having a bit of an issue adding a button row to my dashboard. I think my problem is that the dashboard has multiple tabs on it for different employees, so it has multiple grids. Is there a way to add a button to each grid without having to access each grid individually? I could see this getting ugly to maintain when we hire new employees or they quit or change departments. It won't be fun managing each individual tab when something changes.
I know this is how you would add the column with the initializelayout event of the grid if I was dealing with a single grid.
e.Layout.Bands(0).Columns.Add("Outsourced", "Outsourced")
e.Layout.Bands(0).Columns("Outsourced").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button
e.Layout.Rows.Band.Columns("Outsourced").ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always
e.Layout.Bands(0).Columns("Outsourced").Header.VisiblePosition = 0
Thanks,
Ted