Hello everyone,I hope you could help me.I have a grid and fill this as follows.
da.Fill(ds, "Therapie") Grid.DataSource = ds Grid.DataMember = "Therapie" Grid.Refresh()
Now I need that at runtime a column with a checkbox is added and this is Markable in the grid.
Hello Ronald,
To add a column to UltraGrid at run time you need to add unbound column. Follow the next link to an article in our documentation showing how to achieve this “Adding Unbound Columns to WinGrid”. Then you need to set the data type of this column to Boolean. This will force the column to show checkboxes by default. You can also check this thread in our forum “Adding UltraGrid Checkbox Column” where same question was discussed and answered.
I am not sure I understand your second question. If you need to catch when checked state of a checkbox has changed you may use CellChanged event of the grid. You can also check the following thread in our forum where same question was asked "Ultragrid event that checking or unchecking of a checkbox?"
Please let me know if you have any additional questions on this matter.