Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
19898 | Oct 6,2004 03:57 AM UTC | Oct 6,2004 06:01 AM UTC | WinForms | 1 |
![]() |
Tags: Grouping |
Dim r As New Random Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim colIndexOfCol1 As Integer = Me.GridGroupingControl1.TableControl.Model.NameToColIndex("Col1") ''some columname Dim currentRow As Integer = Me.GridGroupingControl1.TableControl.CurrentCell.RowIndex Dim currentCol As Integer = Me.GridGroupingControl1.TableControl.CurrentCell.ColIndex If (currentCol = colIndexOfCol1) Then MessageBox.Show("test") ''some dialog Me.GridGroupingControl1.TableControl.Table.CurrentRecord.SetValue("Col1", r.Next(10000)) End If End Sub
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.