16,007,277 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 .NET 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 jamesdk8 (Top 5 by date)
jamesdk8
11-Jan-11 15:52pm
View
I have made a couple changes and got rid some unnecessary code. This is what I'm working with now. The current problem now is ncrRow is null after I pass selectedRow to it.
private SCDataSet.qNCRRow GetNCRRow()
{
DataRow selectedRow = ( DataRow )GridNCRView.GetDataRow( GridNCRView.FocusedRowHandle );
SCDataSet.qNCRRow ncrRow = selectedRow as SCDataSet.qNCRRow;
if ( ncrRow != null )
{
return ncrRow;
}
return null;
}
jamesdk8
10-Jan-11 11:55am
View
This works but when I get into the second method the row.DataBoundItem Property is null (see above).
jamesdk8
7-Jan-11 17:40pm
View
The problem with this is the DataRow.ItemArray is an array of the the row data and everything is not a int. Some are strings and booleans also.
jamesdk8
28-Sep-10 16:59pm
View
Deleted
Alright here's some code but it's kinda pointless cause the problem is not with the code that is called. It's with the event. It's just not executing the code in it. bare in mind I'm using VS2005. I've tested it in 2010 and it seems to work fine but that's a simple 1 form app not complex like the one giving me problems right now.
private void BaseForm_FormClosing( object sender, FormClosingEventArgs e )
{
SaveSettings( this.FindForm().Name, this.FindForm().Name, checkbox1.Name, checkbox1.checked );
}
jamesdk8
28-Sep-10 14:35pm
View
I've already tested the code to see if it works like you said. No XML file is created when the code is placed in the form close event.