Click here to Skip to main content
15,561,422 members
Home / Discussions / C#
   

C#

 
AnswerRe: Data Transfer Between Two Thread Pin
Manfred Rudolf Bihy17-Sep-12 1:27
professionalManfred Rudolf Bihy17-Sep-12 1:27 
GeneralRe: Data Transfer Between Two Thread Pin
sinpulay19-Oct-12 23:35
professionalsinpulay19-Oct-12 23:35 
Questionhow to ... Pin
john563217-Sep-12 0:16
john563217-Sep-12 0:16 
AnswerRe: how to ... Pin
Mycroft Holmes17-Sep-12 0:37
professionalMycroft Holmes17-Sep-12 0:37 
GeneralRe: how to ... Pin
john563217-Sep-12 0:43
john563217-Sep-12 0:43 
AnswerRe: how to ... Pin
Bernhard Hiller17-Sep-12 0:37
Bernhard Hiller17-Sep-12 0:37 
AnswerRe: how to ... Pin
Shameel17-Sep-12 1:06
professionalShameel17-Sep-12 1:06 
QuestionDataGridView throwing Drawing exception when assigning datasource Pin
Groulien16-Sep-12 7:42
Groulien16-Sep-12 7: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 15:58
professionalEddy Vluggen16-Sep-12 15:58 
AnswerRe: DataGridView throwing Drawing exception when assigning datasource Pin
Groulien18-Sep-12 6:33
Groulien18-Sep-12 6:33 
GeneralRe: DataGridView throwing Drawing exception when assigning datasource Pin
Eddy Vluggen18-Sep-12 9:12
professionalEddy Vluggen18-Sep-12 9:12 
QuestionC# work with documents Pin
rachel_m16-Sep-12 6:54
rachel_m16-Sep-12 6:54 
AnswerRe: C# work with documents Pin
Richard Andrew x6416-Sep-12 8:22
professionalRichard Andrew x6416-Sep-12 8:22 
GeneralRe: C# work with documents Pin
rachel_m16-Sep-12 14:52
rachel_m16-Sep-12 14:52 
GeneralRe: C# work with documents Pin
Eddy Vluggen16-Sep-12 15:31
professionalEddy Vluggen16-Sep-12 15:31 
QuestionLooking for low-level C# Projects Examples Pin
atoi_powered16-Sep-12 5:55
atoi_powered16-Sep-12 5:55 
AnswerRe: Looking for low-level C# Projects Examples Pin
Paul Conrad16-Sep-12 6:48
professionalPaul Conrad16-Sep-12 6:48 
GeneralRe: Looking for low-level C# Projects Examples Pin
atoi_powered16-Sep-12 11:49
atoi_powered16-Sep-12 11:49 
GeneralRe: Looking for low-level C# Projects Examples Pin
Paul Conrad16-Sep-12 12:21
professionalPaul Conrad16-Sep-12 12:21 
GeneralRe: Looking for low-level C# Projects Examples Pin
atoi_powered19-Sep-12 0:22
atoi_powered19-Sep-12 0:22 
GeneralRe: Looking for low-level C# Projects Examples Pin
Paul Conrad19-Sep-12 6:36
professionalPaul Conrad19-Sep-12 6:36 
AnswerRe: Looking for low-level C# Projects Examples Pin
Richard MacCutchan16-Sep-12 6:58
mveRichard MacCutchan16-Sep-12 6:58 
GeneralRe: Looking for low-level C# Projects Examples Pin
atoi_powered16-Sep-12 11:56
atoi_powered16-Sep-12 11:56 
GeneralRe: Looking for low-level C# Projects Examples Pin
Richard MacCutchan16-Sep-12 22:01
mveRichard MacCutchan16-Sep-12 22:01 
QuestionData compression Pin
Mubi, Nigeria16-Sep-12 3:04
Mubi, Nigeria16-Sep-12 3: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.