I would like to stop row selection with the following code...it's not working;
If
ddlYearMo < currYearMo Then
Else
Hi davefevold,
In what way is this code not working for you? Changing the select type affects what the user will be able to do after, but it does not clear the selected rows collection. Maybe you could be a little clearer on your scenario?
regards,David Young
within the sub "Protected Sub wdgLiftCnt_InitializeRow(ByVal sender As Object, ByVal e As Infragistics.Web.UI.GridControls.RowEventArgs) Handles wdgLiftCnt.InitializeRow" I want to be able to allow row selection (I have a row editing template setup) based on a date selection on the screen...if the date selection is before current month, I don't want the user to be able to edit any data, it date selected is current month, allow editing...4tthe following code doesn't seem to work though...I'm still able to click on the r8ow selector a5nd bring0 up the edit template even though "SelectType" is set to none.
Me.wdgLiftCnt.Behaviors.Selection.RowSelectType = GridControls.SelectType.None
Me.wdgLiftCnt.Behaviors.Selection.RowSelectType = GridControls.SelectType.Single
End If