Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
1623 | Nov 15,2002 03:48 PM UTC | Jun 9,2004 12:14 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
Private Sub GridDataBoundGrid1_CellClick(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridCellClickEventArgs) Handles GridDataBoundGrid1.CellClick
Dim dTblColIdx As Integer
dTblColIdx = GridDataBoundGrid1.Binder.ColIndexToField(e.ColIndex)
Dim sName As String = GridDataBoundGrid1.Binder.InternalColumns(dTblColIdx).MappingName()
MsgBox(dt.Columns(sName).ColumnName)
End Sub
GridHierarchyLevel level0 = this.gridDataBoundGrid1.Binder.RootHierarchyLevel;
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
int rowPos = this.gridDataBoundGrid1.Binder.RowIndexToPosition(cc.RowIndex);
int colPos = this.gridDataBoundGrid1.Binder.ColIndexToField(cc.ColIndex);
int field = level0.RowFieldToField(rowPos % level0.RowCountPerRecord, colPos);
Console.WriteLine(level0.InternalColumns[field].MappingName);
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.