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
50
UltraWinGrid ColumnStyle.CheckBox
posted

Mike or someone,

I'm in desperate need of help on this. I'm a newb, so here goes:

I've got an ultrawingrid that I've set one of the column styles to be a CheckBox in the grid InitializeLayout event:

.Bands(0).Columns(_dsMyDataSet.ACTIVE_FLGColumn.Ordinal).Style = ColumnStyle.CheckBox

When the grid is loaded and displayed the checkbox in the AddRow has the NULL value. I'm using the BeforeRowActivated event to disable some items on the form when the user enters the addrow of the grid:

With dgMyGrid

If .Rows(0).IsAddRow Then

'Do Stuff Here

End If

One of the actions I need to perform here is to set the value of the checkbox to True or Checked. I don't HAVE to do it in this event, but my requirement calls for it to be checked. At this point I've tried everything I know to do to set the default value to no avail.

Please, some advice or assistance.