Home - Forums-.NET - FlyGrid.Net (Windows Forms) - question about TODOStyledNode

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

question about TODOStyledNode
Link Posted: 05-Feb-2006 23:22
Hi,
In your sample treeListViewForm, you create the nodes as such:

Node node = new TodoStyledNode(new object[]{(TaskPriority)i, tasks[i], details[i]});


But in my program I do not fill my grid this way. I mainly use bound lookuplistcolumns that I add to my grid. How can I apply the same technique for node style with a lookuplistcolumn?

Also, could you update the vb samples so i can understand the code better?

Thanks
Link Posted: 06-Feb-2006 00:10
You can use usual DropDownListColumn or DropDownListColumnWithImages instead of LookuplistColumn and fill DropDownListColumn.Items with dropdownlist values.
Link Posted: 06-Feb-2006 00:14
[quote="NineRays"]You can use usual DropDownListColumn or DropDownListColumnWithImages instead of LookuplistColumn and fill DropDownListColumn.Items with dropdownlist values.

  
I'm not sure I'm with you.... could you explain a bit more, how is this going to help me applying the style? What I want to achieve is the same as in the demo, i.e. highlighting the row under the mouse pointer.
Thanks
Link Posted: 06-Feb-2006 01:45
To make rows highlighting in the databound FlyGrid:
[list=1]
  • You can use the same technique(see the mousemove, mouseLeave event handlers), but use FlyGrid.VirtualMode_InitNewNode handler to create StyledNode (below) instead of standard virtual node.
  • [/*:m]
  • Use StyledNode that inherited from VirtualNode (not from Node):
    internal class StyledNode : VirtualNode, IStyledNode
    {
      //here you can insert  the code from TodoStyledNode:
      //public void OnBeginPaint(CellDrawInfo info) and
      //public void OnEndPaint(CellDrawInfo info)
    }
  • [/*:m][/list:o]