We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do i change the value of a particular cell when using grid grouping?

Thread ID:

Created:

Updated:

Platform:

Replies:

19898 Oct 6,2004 03:57 AM UTC Oct 6,2004 06:01 AM UTC WinForms 1
loading
Tags: Grouping
Angela Chua
Asked On October 6, 2004 03:57 AM UTC

Hi.. It seems that i have problems trying to change the value of a particular cell when i''''m using grip grouping control. I''''m very new to gripgrouping and i''''m not even sure how to get the data of a particular row of a particular column. (cell) Below are my codes. Dim intRow As Integer = ggcOrderProfileTestResults.TableModel.CurrentCellInfo.RowIndex() Dim strNA As String = ggcOrderProfileTestResults.Table.CurrentRecord.GetData()("NumericAlpha") If ggcOrderProfileTestResults.TableModel.CurrentCellInfo.ColIndex = 3 Then frmGeneral.ShowDialog() ggcOrderProfileTestResults.Table.CurrentRecord.SetValue("NumericAlpha", frmGeneral.Key) End If Can some one help?? thx a million..

Administrator [Syncfusion]
Replied On October 6, 2004 06:01 AM UTC

Exactly what is it that you want to do? Do you want to change the value of the currentcell from a dialog in a button handler? If so, here is a button handler that worked for me in a little sample.
    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

CONFIRMATION

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.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;