15,891,863 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Arvi.S (Top 18 by date)
Arvi.S
8-Jan-18 0:35am
View
The same code i tried with the names i have kept. But even then its not working!
Arvi.S
4-Jan-18 23:00pm
View
In the above code you are trying to cancel the mouse click. I tried your code and i don't fetch with any positive result.. Any other way?? Small changes made to my code which i had changed abouve. Kindly see to it
Arvi.S
4-Jan-18 22:57pm
View
There is no response in the above code which you had sent. Is there any other solution?
Arvi.S
4-Jan-18 2:18am
View
Thank you so much pradeep!!. This works very well!!
Arvi.S
3-Jan-18 1:31am
View
Declared "bool isChecked = false;" globally.
private void t1RadioButton_CheckedChanged(object sender, EventArgs e)
{
for (int i = 0; i < routeNamesListView.Items.Count; i++)
{
if (t1RadioButton.Checked)
routeNamesListView.Items[i].Checked = true;
else
routeNamesListView.Items[i].Checked = false;
}
isChecked = t1RadioButton.Checked;
}
private void t1RadioButton_Click(object sender, EventArgs e)
{
if (t1RadioButton.Checked && !isChecked)
t1RadioButton.Checked = false;
else
{
t1RadioButton.Checked = true;
isChecked = false;
}
}
Once again I'm repeating, all the check boxes in list view control is checked by default!
Arvi.S
3-Jan-18 1:01am
View
Yeah..I did whatever you have coded above. But its not working and throws zero error.
As i mentioned in the above comment, my check boxes comes checked in default which i did not mention in my question. Should i have to change anything from your code?
And in the code which you have sent, if the radio button is clicked once, it is not accepting for the next click action.
Arvi.S
3-Jan-18 0:46am
View
Pradeep. There seems to be no errors but it is not working. I now tell you here that all the check boxes in list view control is checked in default as i use the below code.
routeNamesListView.CheckBoxes = true;
{
for (int i = 0; i < routeNamesListView.Items.Count; i++)
{
routeNamesListView.Items[i].Checked = true;
}
}
Will it be good to select/Deselect check boxes using a single check box? If so kindly let me know
Arvi.S
2-Jan-18 6:15am
View
Thanks pradeep!! The above code is running well. But out of two columns, only value of first column(SIGNAL) is displayed in listview and the value of next column(ROUTE_BUTTON) is not displayed.
Arvi.S
2-Jan-18 5:30am
View
Tried the above code Mr.Karthick, but the same problem im facing.
There is no errors but i didnt get output.
One thing i observed when debugging your code.
Column and row count in da.Fill(dt) is null.
Arvi.S
2-Jan-18 5:06am
View
Added, But there is no effect!
Arvi.S
2-Jan-18 4:38am
View
could gain the column, row count of content table in the DataTable ReadFile function. But the same values of content table could not be seen in the button click event.
Note:
In the button event, i changed DataTable schemaTable = ReadFile(); to DataTable ContentTable = ReadFile();
Arvi.S
2-Jan-18 4:29am
View
Tried removing it.
Also i removed "schemaTable = new DataTable" from read file function as it is never used.
But there is no effect!
Arvi.S
2-Jan-18 3:37am
View
Established a connection string in oledb to use excel.
In the next function, im reading particular columns of a sheet from the excel file.
What i want is:
when the button is clicked, the file has to be read and should be displayed in listview.
Arvi.S
2-Jan-18 3:32am
View
I dont get any errors.When i kept break point and debug, in the button event "DataTable schemaTable" has null values.
Arvi.S
2-Jan-18 3:31am
View
Deleted
I dont get any errors.When i kept break point and debug, in the button event "DataTable schemaTable" has null values.
Arvi.S
27-Dec-17 6:36am
View
Partially got some codes by googling it.As per your guess, if the reference has null value, how shall i proceed further?
Arvi.S
27-Dec-17 5:56am
View
It is showing me "An unhandled exception of type 'System.ArgumentException' occurred in System.Data.dll" pointing the
"ContentTable.Rows.Add(dr[0].ToString().Trim(), dr[1].ToString().Trim(), dr[2].ToString().Trim());"
Since im new to C#, i don't have any idea why to use that "dr[]".
Arvi.S
27-Dec-17 5:41am
View
To read 2 columns in a excel sheet and should display the values in the list view control with checkboxes
Show More