Hi Guys
I'm trying to set up a TreeList which reads from a table and displays the contents so that some of the table's fields can be edited to indicate a users preference and then written back to the original table. I have "enableItemEdit" set to True but this only seems to allow me to add text which overlays on the first non-grouped field rather than replacing it. I have a boolean field in the dataset as well which I would like the user to be able to check or uncheck. Currently when I read that field into the control all checkboxes are checked even though the data indicate that only some of them should be.
Note that the display of the data is working fine it's the edit and writeback which I am having trouble with.
I am very new to Nevron and would appreciate any help you could provide.
Also, is it possible to download the programming reference as the online version hangs my browser whenever I attempt to open it.
Thanks in advance
Ian Carson
P.S. Code follows:
Public
Class frmPortfolioPrivate Sub frmPortfolio_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadDim pTableAdapter As New DataSet1TableAdapters.PortfolioTableAdapter()
Dim data As NTreeListTableData = New NTreeListTableData()data.Table = pTableAdapter.GetDataTable()
data.Bind(NTreeList1)
Dim col1 As NTreeListColumn = NTreeList1.Columns("InstrumentType")Dim col2 As NTreeListColumn = NTreeList1.Columns("InstrumentGroup")NTreeList1.GroupBy(col1)
NTreeList1.GroupBy(col2)
NTreeList1.SortColumn(col1,
TreeListSortMode.Descending)NTreeList1.SortColumn(col2,
TreeListSortMode.Ascending)NTreeList1.SortColumn(NTreeList1.Columns(
"InstrumentParentID"), TreeListSortMode.Ascending)NTreeList1.SortColumn(NTreeList1.Columns(
"InstrumentName"), TreeListSortMode.Ascending)NTreeList1.BestFitAllColumns()
NTreeList1.BestFitAllNodes()
'NTreeList1.Expand(2, False)NTreeList1.Columns(
"ID").Visible = FalseNTreeList1.Columns(
"InstrumentParentID").Visible = FalseNTreeList1.Columns(
"LastModifiedDate").Visible = FalseEnd SubEnd
Class