BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//subscribe to the event this.gridDataBoundGrid1.Model.SelectionChanging += new GridSelectionChangingEventHandler(Model_SelectionChanging); //the handler private void Model_SelectionChanging(object sender, GridSelectionChangingEventArgs e) { GridModel model = sender as GridModel; if(model != null) { if(e.Range != null && e.Range.IntersectsWith(GridRangeInfo.Rows(model.RowCount-1, model.RowCount))) { e.Cancel = true; } } }And if your user cannot select cells in teh last two rows, he will not be able to drag them.
AddHandler Me.gridDataBoundGrid1.Model.SelectionChanging, AddressOf Model_SelectionChanging
'' Handler..
Private Sub Model_SelectionChanging(ByVal sender As Object, ByVal e As GridSelectionChangingEventArgs)
Dim model As GridModel = CType(sender, GridModel)
If Not (model Is Nothing) Then
If Not (e.Range Is Nothing) AndAlso e.Range.IntersectsWith(GridRangeInfo.Rows(model.RowCount - 1, model.RowCount)) Then
e.Cancel = True
End If
End If
End Sub
Regards,
Jay N