Click here to Skip to main content
15,032,623 members
Home / Discussions / C#
   

C#

 
AnswerRe: Data Transfer Between Two Thread Pin
Manfred Rudolf Bihy17-Sep-12 0:27
professionalManfred Rudolf Bihy17-Sep-12 0:27 
GeneralRe: Data Transfer Between Two Thread Pin
sinpulay19-Oct-12 22:35
professionalsinpulay19-Oct-12 22:35 
Questionhow to ... Pin
john563216-Sep-12 23:16
Memberjohn563216-Sep-12 23:16 
AnswerRe: how to ... Pin
Mycroft Holmes16-Sep-12 23:37
professionalMycroft Holmes16-Sep-12 23:37 
GeneralRe: how to ... Pin
john563216-Sep-12 23:43
Memberjohn563216-Sep-12 23:43 
AnswerRe: how to ... Pin
Bernhard Hiller16-Sep-12 23:37
MemberBernhard Hiller16-Sep-12 23:37 
AnswerRe: how to ... Pin
Shameel17-Sep-12 0:06
professionalShameel17-Sep-12 0:06 
QuestionDataGridView throwing Drawing exception when assigning datasource Pin
Groulien16-Sep-12 6:42
MemberGroulien16-Sep-12 6:42 
Hello CP,

I've run into a problem while working on an interface for the result of raw SQL.
The user inputs the raw SQL code and the form renders a result, it's an educational piece of software so nothing too fancy.

Now, the problem I have is that after putting the result into a DataTable, it crashes when I pass it as a DataSource for the DataGridView.
The database I'm querying is an MSAccess (2003, mdb) database.
Oddly enough, it doesn't misbehave (crash) when I'm using an SQLite database.

I would like some help since the stacktrace isn't making sense to me.


Quote:
A first chance exception of type 'System.ArgumentException' occurred in System.Drawing.dll
System.Transactions Critical: 0 : <tracerecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" severity="Critical"><traceidentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled<description>Unhandled exception<appdomain>SimpelQL.Net.vshost.exe<exception><exceptiontype>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089<message>Parameter is not valid.<stacktrace> at System.Drawing.Font.GetHeight(Graphics graphics)
at System.Drawing.Font.GetHeight()
at System.Drawing.Font.get_Height()
at System.Windows.Forms.DataGridViewRow..ctor()
at System.Windows.Forms.DataGridView.get_RowTemplateClone()
at System.Windows.Forms.DataGridView.RefreshRows(Boolean scrollIntoView)
at System.Windows.Forms.DataGridView.RefreshColumnsAndRows()
at System.Windows.Forms.DataGridView.OnDataSourceChanged(EventArgs e)
at System.Windows.Forms.DataGridView.set_DataSource(Object value)
at Proj.Net.MainForm.evt_Exec(Object sender, EventArgs e) in L:\Dev\Proj.Net\MainForm.cs:line 139

The first rule of CListCtrl is you do not talk about CListCtrl - kornman

QuestionRe: DataGridView throwing Drawing exception when assigning datasource Pin
Eddy Vluggen16-Sep-12 14:58
professionalEddy Vluggen16-Sep-12 14:58 
AnswerRe: DataGridView throwing Drawing exception when assigning datasource Pin
Groulien18-Sep-12 5:33
MemberGroulien18-Sep-12 5:33 
GeneralRe: DataGridView throwing Drawing exception when assigning datasource Pin
Eddy Vluggen18-Sep-12 8:12
professionalEddy Vluggen18-Sep-12 8:12 
QuestionC# work with documents Pin
rachel_m16-Sep-12 5:54
Memberrachel_m16-Sep-12 5:54 
AnswerRe: C# work with documents Pin
Richard Andrew x6416-Sep-12 7:22
professionalRichard Andrew x6416-Sep-12 7:22 
GeneralRe: C# work with documents Pin
rachel_m16-Sep-12 13:52
Memberrachel_m16-Sep-12 13:52 
GeneralRe: C# work with documents Pin
Eddy Vluggen16-Sep-12 14:31
professionalEddy Vluggen16-Sep-12 14:31 
QuestionLooking for low-level C# Projects Examples Pin
atoi_powered16-Sep-12 4:55
Memberatoi_powered16-Sep-12 4:55 
AnswerRe: Looking for low-level C# Projects Examples Pin
Paul Conrad16-Sep-12 5:48
professionalPaul Conrad16-Sep-12 5:48 
GeneralRe: Looking for low-level C# Projects Examples Pin
atoi_powered16-Sep-12 10:49
Memberatoi_powered16-Sep-12 10:49 
GeneralRe: Looking for low-level C# Projects Examples Pin
Paul Conrad16-Sep-12 11:21
professionalPaul Conrad16-Sep-12 11:21 
GeneralRe: Looking for low-level C# Projects Examples Pin
atoi_powered18-Sep-12 23:22
Memberatoi_powered18-Sep-12 23:22 
GeneralRe: Looking for low-level C# Projects Examples Pin
Paul Conrad19-Sep-12 5:36
professionalPaul Conrad19-Sep-12 5:36 
AnswerRe: Looking for low-level C# Projects Examples Pin
Richard MacCutchan16-Sep-12 5:58
mveRichard MacCutchan16-Sep-12 5:58 
GeneralRe: Looking for low-level C# Projects Examples Pin
atoi_powered16-Sep-12 10:56
Memberatoi_powered16-Sep-12 10:56 
GeneralRe: Looking for low-level C# Projects Examples Pin
Richard MacCutchan16-Sep-12 21:01
mveRichard MacCutchan16-Sep-12 21:01 
QuestionData compression Pin
Mubi, Nigeria16-Sep-12 2:04
MemberMubi, Nigeria16-Sep-12 2:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.