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
765
Grid VB.net
posted

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.

How can check which cells have been marked with the Checkbox?

The Projekt ist in VB.net

Thank you for your help
Reguards
Ronald

  • 21795
    Offline posted

    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.