Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Preview for rows

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

Preview for rows
Link Posted: 07-Dec-2005 21:46
Hi

1. is it possible to display preview to rows as one continues line
benife the row, like in outlook 2003

2. is there a build in way to display preview as a Text benife the Grid that
changes when you change the selected row

10x, moshe
Link Posted: 07-Dec-2005 22:40
1. is it possible to display preview to rows as one continues line
benife the row, like in outlook 2003

Yes it is possible, use NineRays.Windows.Forms.Data.SeparatorNode
Displaying lines in outlook2003 style in separator nodes will available at the nearest update (probably tomorrow).

2. is there a build in way to display preview as a Text benife the Grid that changes when you change the selected row

You can use FlyGrid.NodeFocusChanging/FlyGrid.NodeFocusChange or
FlyGrid.NodeSelectedChanging/FlyGrid.NodeSelectedChange events.
Link Posted: 11-Dec-2005 05:33
hi,

thank you,
but about the first question, what i ment is that as shown in the
picture, there is a row with data for each column, and there is
a simple text line benife the row that we can put any text there
or even if it possible to link it to a DataColumn in a DataTable



moshe.
Link Posted: 11-Dec-2005 14:11
See the code below, that shows how to fill FlyGrid with data and separators:
[C#]
private void FillGrid(FlyGrid flyGrid)
{
  for(int i=0; i < 10; i++)
  {
    //create separator with title "Row#"
    SeparatorNode sepNode = new SeparatorNode("Row#" + i.ToString());
    //add children
     for(int j=0; j < 5; j++)
    {
      //create data of node, cells contents
      object[] data = new object[]{"ChildRow of"+ i.ToString, "Child#" + j.ToString()};
      //create child
      Node newNode = new Node(data);
      //add to the separator node
      sepNode.Items.Add(newNode);
    }
    //add separator
    flyGrid.Rows.Items.Add(sepNode)
  }
}