Home - Forums-.NET - FlyGrid.Net (Windows Forms) - LeftFixedColumns does not work!

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

LeftFixedColumns does not work!
Link Posted: 10-Nov-2006 04:09
Hello Everybody,
I am trying to use LeftFixedColumns property but it does not seem to work.

This is how i am trying to apply it:

////////////////////////////

FG.BeginInit()
FG.Columns.Items.Clear()
FG.Columns.LeftFixedColumns = 3

Dim Col As Column

'ID
Col = New Column(\"ContactID\", \"ContactID\")
Col.Caption = \"ID\"
Col.Width = 50
Col.Visible = False
Col.ReadOnly = True
FG.Columns.Items.Add(Col)

'select
Col = New BooleanColumn(\"Select\", \"Select\")
Col.Caption = \"\"
Col.Width = 30
FG.Columns.Items.Add(Col)

'FullName
Col = New Column(\"FullName\", \"FullName\")
Col.Caption = \"Name\"
Col.Width = 150
Col.ReadOnly = True
FG.Columns.Items.Add(Col)

'Company
Col = New Column(\"Company\", \"Company\")
Col.Caption = \"Company\"
Col.Width = 150
Col.ReadOnly = True
FG.Columns.Items.Add(Col)


'Address
Col = New Column(\"FullAddress\", \"FullAddress\")
Col.Caption = \"Address\"
Col.Width = 250
Col.ReadOnly = True
FG.Columns.Items.Add(Col)

'Country
Col = New Column(\"CountryName\", \"CountryName\")
Col.Caption = \"Country\"
Col.Width = 100
Col.AllowFiltering = True
Col.ReadOnly = True
FG.Columns.Items.Add(Col)


FG.EndInit()
/////////////////////////////////


I can see all my columns added but if i scroll there is no fixed columns.

Can you help me?
Best regards,
Giorgio
Link Posted: 13-Nov-2006 00:47
Please place this statement:

FG.Columns.LeftFixedColumns = 3

to the end of this example:
[VB.Net]
FG.BeginInit()
FG.Columns.Items.Clear()

Dim Col As Column

'ID
Col = New Column(\"ContactID\", \"ContactID\")
Col.Caption = \"ID\"
Col.Width = 50
Col.Visible = False
Col.ReadOnly = True
FG.Columns.Items.Add(Col)

'select
Col = New BooleanColumn(\"Select\", \"Select\")
Col.Caption = \"\"
Col.Width = 30
FG.Columns.Items.Add(Col)

'FullName
Col = New Column(\"FullName\", \"FullName\")
Col.Caption = \"Name\"
Col.Width = 150
Col.ReadOnly = True
FG.Columns.Items.Add(Col)

'Company
Col = New Column(\"Company\", \"Company\")
Col.Caption = \"Company\"
Col.Width = 150
Col.ReadOnly = True
FG.Columns.Items.Add(Col)

'Address
Col = New Column(\"FullAddress\", \"FullAddress\")
Col.Caption = \"Address\"
Col.Width = 250
Col.ReadOnly = True
FG.Columns.Items.Add(Col)

'Country
Col = New Column(\"CountryName\", \"CountryName\")
Col.Caption = \"Country\"
Col.Width = 100
Col.AllowFiltering = True
Col.ReadOnly = True
FG.Columns.Items.Add(Col)

FG.Columns.LeftFixedColumns = 3
FG.EndInit()