Home - Forums-.NET - FlyGrid.Net (Windows Forms) - maybe dumb question

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

maybe dumb question
Link Posted: 07-Feb-2006 11:08
Hi,
I want to get a value in (example)  

row 10
column 5

How to do ????
Link Posted: 07-Feb-2006 22:21
To get Node from row 10:
[c#]NodeBase node = flyGrid.Rows.GetNodeFromRow(10);

or (if flyGrid has plain (list, not hierarchical) structure) or has hidden nodes:
[c#]NodeBase node = flyGrid.Rows.Items[10];

To get column at index 5:
[c#]Column col = flyGrid.Columns.Items[5];

or (if flyGrid has unvisible columns):
[c#]Column col = flyGrid.Columns.VisibleColumns[5];

To get value from certain node at index 5:
[c#]
NodeBase node = flyGrid.Rows.GetNodeFromRow(10);
return node[5];

or (if need to get value relate to certain Column, especially in cases when column can be unvisible):
[c#]
Column col = flyGrid.Columns.Items[5];
NodeBase node = flyGrid.Rows.GetNodeFromRow(10);
return node[col];
Link Posted: 08-Feb-2006 03:36
It works. Thanks your your help.