15,905,508 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 envprogrammer (Top 16 by date)
envprogrammer
27-Sep-10 18:35pm
View
It looks like I needed to recreate the TableAdapters when i change queries in the DataSet Designer.
envprogrammer
27-Sep-10 10:57am
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
envprogrammer
27-Sep-10 10:45am
View
In the form designer:
//
// resultdataGridView1
//
this.resultdataGridView1.AutoGenerateColumns = false;
this.resultdataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.resultdataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.chemical_name,
this.casrnDataGridViewTextBoxColumn,
this.resulttextDataGridViewTextBoxColumn,
this.interpreted_qualifiers,
this.remark,
this.validatorqualifiersDataGridViewTextBoxColumn,
this.methoddetectionlimitDataGridViewTextBoxColumn,
this.reportingdetectionlimitDataGridViewTextBoxColumn,
this.detectflagDataGridViewTextBoxColumn,
this.reportableresultDataGridViewTextBoxColumn,
this.quantitationlimitDataGridViewTextBoxColumn,
this.resultunitDataGridViewTextBoxColumn});
this.resultdataGridView1.DataSource = this.dt_resultBindingSource;
this.resultdataGridView1.Location = new System.Drawing.Point(39, 523);
this.resultdataGridView1.Name = "resultdataGridView1";
this.resultdataGridView1.Size = new System.Drawing.Size(951, 150);
this.resultdataGridView1.TabIndex = 19;
this.resultdataGridView1.RowLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_RowLeave);
//
In DataSet Designer:
<dbsource connectionref="SpectraConnectionString (Settings)" dbobjecttype="Unknown" fillmethodmodifier="Public" fillmethodname="FillByTestandFacID" generatemethods="Both" generateshortcommands="true" generatorgetmethodname="GetDataBy2TestID" generatorsourcename="FillByTestandFacID" getmethodmodifier="Public" getmethodname="GetDataBy2TestID" querytype="Rowset" scalarcallretval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" useoptimisticconcurrency="true" usergetmethodname="GetDataBy2TestID" usersourcename="FillByTestandFacID">
<selectcommand>
<dbcommand commandtype="Text" modifiedbyuser="true">
<commandtext>SELECT rt_analyte.chemical_name, dt_result.cas_rn, dt_result.result_text, dt_result.interpreted_qualifiers, dt_result.remark, dt_result.validator_qualifiers,
dt_result.method_detection_limit, dt_result.reporting_detection_limit, dt_result.detect_flag, dt_result.reportable_result, dt_result.quantitation_limit,
dt_result.result_unit
FROM dt_result INNER JOIN
rt_analyte ON dt_result.cas_rn =rt_analyte.cas_rn
WHERE (dt_result.test_id = @test_id) AND (dt_result.facility_id = @facility_id)
<parameters>
<parameter allowdbnull="false" autogeneratedname="test_id" columnname="test_id" datasourcename="Spectra.dbo.dt_result" datatypeserver="int" dbtype="Int32" direction="Input" parametername="@test_id" precision="0" providertype="Int" scale="0" size="4" sourcecolumn="test_id" sourcecolumnnullmapping="false" sourceversion="Current">
<parameter allowdbnull="false" autogeneratedname="facility_id" columnname="facility_id" datasourcename="Spectra.dbo.dt_result" datatypeserver="int" dbtype="Int32" direction="Input" parametername="@facility_id" precision="0" providertype="Int" scale="0" size="4" sourcecolumn="facility_id" sourcecolumnnullmapping="false" sourceversion="Current">
envprogrammer
27-Sep-10 10:44am
View
Thank you for your reply. I changed the names of the columns and deleted some variables--so i don't think the datagridview should be autogenerated. Does anyone know if that could create an error?
envprogrammer
17-Sep-10 15:36pm
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
envprogrammer
17-Sep-10 15:36pm
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
envprogrammer
17-Sep-10 15:36pm
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
envprogrammer
17-Sep-10 15:36pm
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
envprogrammer
17-Sep-10 15:36pm
View
Thanks everyone for your help! I ended up using a "select null union all select *" query in the fill command as a work-around
envprogrammer
16-Sep-10 11:57am
View
I followed the method using "step into" with the debug mode. It executes "this.comboBox2.SelectedIndex = -1" successfully. Once it leaves comboBox1_SelectedIndexChanged, somehow combobox2 gets selected. The debugger doesn't show me what method is doing this even when I'm pressing F8. I think this is a case of Net "thinking" for me, but I don't know how.
envprogrammer
16-Sep-10 11:36am
View
Was another typo--but I'll watch out for errors like that in the future.
envprogrammer
16-Sep-10 10:27am
View
That typo is just here--that error is not in the code. I retyped things for here.
envprogrammer
15-Sep-10 14:51pm
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
envprogrammer
15-Sep-10 14:51pm
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
envprogrammer
15-Sep-10 14:51pm
View
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
envprogrammer
15-Sep-10 14:51pm
View
This is what I used and it appears to be the answer.
Show More