Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
3214 | Mar 8,2003 04:08 PM UTC | Feb 17,2005 10:00 PM UTC | WinForms | 13 |
![]() |
Tags: GridControl |
private void gridControl1_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs args) { GridCurrentCell cc = this.gridControl1.CurrentCell; if(cc.Renderer.ControlText == "two") cc.Renderer.Control.Text = "three"; }
dgCleaned.CurrentCell.ConfirmChanges(False)
If this does not help, exactly where is your ValidateCurrentRow being called from?
Private Sub grdDateRange_CurrentCellCloseDropDown(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.PopupClosedEventArgs) Handles grdDateRange.CurrentCellCloseDropDown
Dim grid As GridControlBase = sender
Dim cb As GridComboBoxCellRenderer = CType(grid.CurrentCell.Renderer, GridComboBoxCellRenderer)
Dim controlText As String
Dim controlValue As Object
If Not cb Is Nothing Then
controlText = cb.ControlText
controlValue = cb.ControlValue
grid.Model(grid.CurrentCell.RowIndex, 3).Text = controlText
grid.Model(grid.CurrentCell.RowIndex, 4).CellValue = controlValue
Dim n As Integer
n = cb.Model.FindValue(grid.Model(grid.CurrentCell.RowIndex, grid.CurrentCell.ColIndex), controlValue)
grid.Model(grid.CurrentCell.RowIndex, 5).CellValue = n
End If
End Sub
it will show you the index in column 5.
Stefan
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.