Click here to Skip to main content
15,913,722 members
Home / Discussions / C#
   

C#

 
GeneralCOM Interop - objects cause NullReferenceExceptions at random Pin
Corinna John31-Oct-03 2:39
Corinna John31-Oct-03 2:39 
GeneralRe: COM Interop - objects cause NullReferenceExceptions at random Pin
Heath Stewart31-Oct-03 5:22
protectorHeath Stewart31-Oct-03 5:22 
Generalnoob winform question Pin
R. Thomas31-Oct-03 1:37
R. Thomas31-Oct-03 1:37 
GeneralRe: noob winform question Pin
Daniel Turini31-Oct-03 2:20
Daniel Turini31-Oct-03 2:20 
GeneralRe: noob winform question Pin
R. Thomas31-Oct-03 4:08
R. Thomas31-Oct-03 4:08 
General(null) values in datagrid Pin
misiek31-Oct-03 0:30
misiek31-Oct-03 0:30 
GeneralRe: (null) values in datagrid Pin
Daniel Turini31-Oct-03 2:18
Daniel Turini31-Oct-03 2:18 
GeneralRe: (null) values in datagrid Pin
misiek31-Oct-03 2:59
misiek31-Oct-03 2:59 
Thanks for your answer.
Unfortunately I don't use any dataset designer.
I use the dataset object only for data visualsation in datagrid.

...					<br />
myDataset = new DataSet();<br />
myAdapter.Fill(myDataset);			<br />
this.myDatagrid.DataSource = myDataset.Tables[0];	<br />


I've been looking for NullValue property for dataset, but I couldn't find it:
myDataset.NullValue
myDataset.Tables[0].NullValue
myDataset.Tables[0].Columns[0].NullValue

No NullValue property for the objects above exists. Frown | :(

But I've found smtg like this:
<br />
this.myDatagrid.TableStyles[0].GridColumnStyles[0].NullText = "-";<br />


but this kind of error appears:
------------------------------------------------------------------------------
System.ArgumentOutOfRangeException: index was out of range. Must be non-negative or less than the size of the colletion.
Parameter name: index
at System.Collection.ArrayList.get_Item(Int32 index)
at System.Windows.Forms.GridCollumnStylesCollection.get_Item(Int32 index)
at................................
-------------------------------------------------------------------------------
The this.myDatagrid.TableStyles[0] causes the error.

Has anybody got any idea what's wrong?

misiek
GeneralRe: (null) values in datagrid Pin
Braulio Dez31-Oct-03 2:59
Braulio Dez31-Oct-03 2:59 
GeneralCrystal Export to Excel Pin
akorolev1030-Oct-03 20:17
akorolev1030-Oct-03 20:17 
GeneralWritng objects to file Pin
Itanium30-Oct-03 18:34
Itanium30-Oct-03 18:34 
GeneralRe: Writng objects to file Pin
MKlucher30-Oct-03 19:08
MKlucher30-Oct-03 19:08 
GeneralRe: Writing objects to file Pin
Itanium30-Oct-03 19:43
Itanium30-Oct-03 19:43 
GeneralRe: Writng objects to file Pin
Corinna John30-Oct-03 19:50
Corinna John30-Oct-03 19:50 
GeneralRe: Writng objects to file Pin
Itanium30-Oct-03 21:44
Itanium30-Oct-03 21:44 
GeneralCommand Bars Pin
monrobot1330-Oct-03 17:37
monrobot1330-Oct-03 17:37 
GeneralRe: Command Bars Pin
J. Dunlap30-Oct-03 20:59
J. Dunlap30-Oct-03 20:59 
GeneralNaming inconsistencies in the BCL Pin
Jeff Varszegi30-Oct-03 10:37
professionalJeff Varszegi30-Oct-03 10:37 
GeneralRe: Naming inconsistencies in the BCL Pin
Nick Parker30-Oct-03 11:51
protectorNick Parker30-Oct-03 11:51 
GeneralRe: Naming inconsistencies in the BCL Pin
Jeff Varszegi30-Oct-03 12:23
professionalJeff Varszegi30-Oct-03 12:23 
GeneralRe: Naming inconsistencies in the BCL Pin
Nick Parker30-Oct-03 13:26
protectorNick Parker30-Oct-03 13:26 
GeneralRe: Naming inconsistencies in the BCL Pin
Heath Stewart30-Oct-03 12:32
protectorHeath Stewart30-Oct-03 12:32 
GeneralRe: Naming inconsistencies in the BCL Pin
Jeff Varszegi30-Oct-03 12:42
professionalJeff Varszegi30-Oct-03 12:42 
Generalbyte[] cast to a string Pin
Tym!30-Oct-03 8:07
Tym!30-Oct-03 8:07 
GeneralRe: byte[] cast to a string Pin
J. Dunlap30-Oct-03 8:21
J. Dunlap30-Oct-03 8:21 

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.