Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
13353 | Apr 27,2004 10:59 AM UTC | Apr 28,2004 02:53 PM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = (GridControl1.Selections.Count).ToString()
If (GridControl1.Selections.Count = 1) Then
Dim range As GridRangeInfo = New GridRangeInfo
range = GridRangeInfo.Cell(Me.GridControl1.CurrentCell.RowIndex, Me.GridControl1.CurrentCell.ColIndex)
If (Me.GridControl1.Selections.Ranges.ActiveRange.Equals(range)) Then
TextBox1.Text = (GridControl1.Selections.Count - 1).ToString()
End If
End If
End Sub
Attached is the sample.
Thanks.
Jay N
selections.count_2975.zip This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.