Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Change specific cell value...

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Change specific cell value...
Link Posted: 30-Dec-2005 06:39
How can I change a specific cell by quoting the column and row index

e.g.


Dim pipeNode As NineRays.Windows.Forms.Data.Node = Me.lstLinePipe.Columns.Items(1).GetValue(3)
pipeNode.Value = pipeName


Thanks

Simon
Link Posted: 17-Jan-2006 07:19
???
Link Posted: 18-Jan-2006 07:55
[VB.Net]
Dim pipeNode As NineRays.Windows.Forms.Data.Node = Me.lstLinePipe.Rows.Items(1)
' here you can use pipeNode("someColumnFieldName") = pipeName where
' "someColumnFieldName" is field name associated with column
' or
' pipeNode(someColumn) = pipeName where someColumn is some Column
' class instance
pipeNode(someColumn) = pipeName
Link Posted: 21-Jan-2006 13:04
I've tried to do this but it gives me an error.

Please click here for test project.

Thanks

Simon
Link Posted: 22-Jan-2006 09:32
Seems that you've not attentively inspect NodeSelectedChange handler parameters and its types.

Please replace your code in this handler by code below:
[VB.Net]
Private Sub FlyGrid_NodeSelectedChange(ByVal sender As Object, ByVal node As NineRays.Windows.Forms.Data.NodeBase) Handles FlyGrid.NodeSelectedChange
    'WARNING: This event handler notifies about Node.Selected changes, when node is
    'selected and when selected node is unselected.
    If (node.Selected) Then
      Dim text As String = "simon"    
      node("Column1") = text
    End If
End Sub