Ok... I've searched this topic and found a lot of posts on related tasks, but nothing seems to help me get the buttons showing up in my grid...
I'm using some combination of the following code in my InitializeRow event handler:
Dim editor1 As New UltraTextEditor Dim button1 As New EditorButton button1.Appearance.Image = My.Resources.lock editor1.ButtonsLeft.Add(button1) e.Row.Cells("images").EditorComponent = editor1
This may be a terribly inefficient way to go about this, but I'm not concerned with that until I get the buttons to actually show up! My desire is to get multiple buttons (3 to 5 max, but any combination of those 3 to 5 buttons can be in each cell). I've got a "buttons" column in the grid... currently bound to a string column in the datatable but all values are empty. I may make this an unbound column later but with the hierarchical nature of my grid, leaving it bound for now is easier.
I can't find a combination of properties that makes the buttons visible. Everything I've read says they should be showing up, but they are not. I've seen grids that do this so I'm fairly sure it's possible.
Any ideas on what I'm missing?
Use the InitializeLayout event, and reference the column.
Dim editor1 As New UltraTextEditor Dim button1 As New EditorButton button1.Appearance.Image = My.Resources.lock editor1.ButtonsLeft.Add(button1) ultraGrid1.DisplayLayout.Bands(0).Columns("images").Row.Cells("images").EditorComponent = editor1
Forgive any mistake in my VB syntax, I've spent the last 5 years in C# land.
My concern with this method is that it will only allow me to show the same buttons in every cell in that column. I need to control which buttons display at a row level, so I'm looking to put this code in the InitializeRow() event handler.
I did try the code above though and still didn't see the button show up in the grid on band 0 (I have 5 or 6 bands, but applied the editor only to band 0 just as a test. I can't see what setting might be causing the buttons to not be visible.