Dear All,
Grateful if anybody tells me how to fix the errors in the attached figure.
TIA

Dear All,
Grateful if anybody tells me how to fix the errors in the attached figure.
TIA

@BenTam-3243, is ObjectListView in the code the same as the Project Name ObjectListView? As usual, we could not create an instance from a namespace. Could you provide the related code in your project ObjectListView?
Thanks for your reply.
ObjectListView is a project created by Phillip Piper. The source code can be found by clicking the following link.[1]
Did you look at the project below, either way it will be gone by noon today.
https://github.com/karenpayneoregon/windows-forms-csharp/tree/Version1/ObjectListViewFramework
Seems your project has issues overall that defy what a standard WinForm project should have.
The only thing I see different between my and your project is the .NET Framework version yet that should not make using static System.Configuration.ConfigurationManager; not to be found.
So I created a mirror image of the project found here that uses System.Configuration.ConfigurationManager version 5 rather than version 4. I'm going to guess even though this should work it will not as the first version should have worked so try if you want and let me know what happens.
After downloading the latest version of System.Configuration.ConfigurationManager, the red lines problem are solved.
Your project were using dataGrid, while I am using objectListView. How should I make the change?
In objectListView, how to get access to the contect of an individual view?
In regards to my sample using a DataGridView, the intention was not about a control but instead System.Configuration.ConfigurationManager, to make the change use your current code or review how to work with the DataSource here. Use the same link for get access to the contect of an individual view
Hi Karen,
I have read that page and gone through all the items. However there isn't any point about getting access to the content of a cell. Could you show me the syntax of that?
TIA
To show you the syntax I would first need to learn enough about the control to do so as I've never used this control. Also this question should be asked in a new post/question as I'm sure there are members here who would know yet are not watching this current post for the secondary question.
Did you follow the instructions here?
http://objectlistview.sourceforge.net/cs/gettingStarted.html
"Download the ObjectListView project
Add the ObjectListView project to your project (right click
on your solution; choose “Add...”, “Existing Project”, then
choose the ObjectListView.csproj)
In your project, add a reference to the ObjectListView project
(right click on your project; choose “Add Reference...”, choose
“Projects” tab; then double click on the ObjectListView project)
Build your project"
Wayne
Add at beginning :
using BrightIdeasSoftware;
Hi Castorix,
Thanks for your reply. After adding the statement, it becomes

Are you sure you added the Reference to ObjectListView Assembly to get the BrightIdeasSoftware namespace ,
like, in a .NET Framework project (I used the NuGet Package Manager to add ObjectListView.Official) :

Hi Castorix,
Thanks for your reply.
I have made sure that the project has referenced to the "ObjectListView" project. However there were still errors. What next?

As @WayneAKing-0228 mentioned and @Castorix31 you need the using statement as seen in this code sample in MainForm.cs, line 19. And note the project reference.
Try the following project
Uses .NET Framework 4.8
Also added one instance of the component via the IDE toobox.
Form code
using System;
using System.Windows.Forms;
using `BrightIdeasSoftware;`
namespace ObjectListViewFramework
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
var objectListViewLocal = new ObjectListView();
}
}
}
I'll study your post later and get back to you later.
Hi Karen,
When I click on the link you provided, it shows a 404 not found problem. I guess the project might have been removed. Would you please re-post the project and send me the link.
Hi Karen,
I follow your instructions. However the words ConigurationManager and AppSetting are red lined. This is different from your project. Can you tellme why?
MY Project

Your Poject

When I click on the link you provided, it shows a 404 not found problem. I guess the project might have been removed. Would you please re-post the project and send me the link.
Yes it was removed and deleted as I can't keep all code samples I write. See my reply just posted before this which points to a project that uses a different version of System.Configuration.
10 people are following this question.
Insert a node as child ,before or after a node in nested dynamic JSON Node using C#
Visual Studio 2019: Undefined behavior in a C++/CLI wrapper project.
Example for how to get Package Metadata from Azure DevOps Rest-Api Artifacts using c#
How to collapse individual nested grids/stackpanels inside a grid?