Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
GeneralSimple language question Pin
Joel Holdsworth14-May-04 9:08
Joel Holdsworth14-May-04 9:08 
GeneralRe: Simple language question Pin
Nemanja Trifunovic14-May-04 9:19
Nemanja Trifunovic14-May-04 9:19 
GeneralRe: Simple language question Pin
Joel Holdsworth14-May-04 9:34
Joel Holdsworth14-May-04 9:34 
GeneralRe: Simple language question Pin
Judah Gabriel Himango14-May-04 9:49
sponsorJudah Gabriel Himango14-May-04 9:49 
GeneralRe: Simple language question Pin
Nemanja Trifunovic14-May-04 10:11
Nemanja Trifunovic14-May-04 10:11 
GeneralRe: Simple language question Pin
Judah Gabriel Himango15-May-04 10:59
sponsorJudah Gabriel Himango15-May-04 10:59 
GeneralDataGrid question Pin
Anfernius14-May-04 7:23
Anfernius14-May-04 7:23 
GeneralRe: DataGrid question Pin
Heath Stewart14-May-04 8:42
protectorHeath Stewart14-May-04 8:42 
Using a DataView is not a problem. With a lack of more detailed information, it's impossible to help you. You need to debug your code: step through your code and find where the NullReferenceException is being thrown.

Also, when a NullReferenceException is thrown, this often points to badly written code. There is no excuse for this exception - always check your variables to make sure they're not null before calling methods on them. If you're expecting data in a particular DataTable within your DataSet, for example, and no data was returned, that DataTable reference could be null (depending on whether or not the DataSet was filled with schema information). Calling a method on that DataTable without checking for a null reference would throw a NullReferenceException. Checking the return value, using a typed DataSet, and programmatically adding a new DataTable with the appropriate name would get rid of this problem.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: DataGrid question Pin
..Hubert..15-May-04 1:13
..Hubert..15-May-04 1:13 
Generalregd painting a form Pin
karteek14-May-04 7:21
karteek14-May-04 7:21 
GeneralRe: regd painting a form Pin
Meysam Mahfouzi14-May-04 7:51
Meysam Mahfouzi14-May-04 7:51 
GeneralRe: regd painting a form Pin
TigerNinja_14-May-04 7:53
TigerNinja_14-May-04 7:53 
GeneralRe: regd painting a form Pin
Judah Gabriel Himango14-May-04 8:29
sponsorJudah Gabriel Himango14-May-04 8:29 
GeneralI\O ports Pin
Member 87345214-May-04 7:10
Member 87345214-May-04 7:10 
GeneralRe: I\O ports Pin
Judah Gabriel Himango14-May-04 7:16
sponsorJudah Gabriel Himango14-May-04 7:16 
GeneralRe: I\O ports Pin
eggie514-May-04 20:30
eggie514-May-04 20:30 
GeneralRe: Setting a Form to TopMost Pin
myNameIsRon14-May-04 6:02
myNameIsRon14-May-04 6:02 
GeneralRe: Setting a Form to TopMost Pin
Heath Stewart14-May-04 6:27
protectorHeath Stewart14-May-04 6:27 
GeneralRe: Setting a Form to TopMost Pin
myNameIsRon15-May-04 11:25
myNameIsRon15-May-04 11:25 
GeneralRe: Setting a Form to TopMost Pin
Heath Stewart16-May-04 11:25
protectorHeath Stewart16-May-04 11:25 
GeneralExcel Paste Special Pin
Russell Jones14-May-04 5:36
Russell Jones14-May-04 5:36 
GeneralRe: Excel Paste Special Pin
Russell Jones14-May-04 5:50
Russell Jones14-May-04 5:50 
GeneralEmbed C# code within VB application Pin
Jack Knife14-May-04 5:23
Jack Knife14-May-04 5:23 
GeneralRe: Embed C# code within VB application Pin
Judah Gabriel Himango14-May-04 5:42
sponsorJudah Gabriel Himango14-May-04 5:42 
GeneralRe: Embed C# code within VB application Pin
Heath Stewart14-May-04 5:55
protectorHeath Stewart14-May-04 5:55 

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.