Click here to Skip to main content
15,881,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: Sql-guestion Pin
JelleM4-May-06 10:59
JelleM4-May-06 10:59 
GeneralRe: Sql-guestion Pin
Christian Graus4-May-06 11:01
protectorChristian Graus4-May-06 11:01 
GeneralRe: Sql-guestion Pin
JelleM4-May-06 11:37
JelleM4-May-06 11:37 
GeneralRe: Sql-guestion Pin
Christian Graus4-May-06 11:43
protectorChristian Graus4-May-06 11:43 
GeneralRe: Sql-guestion Pin
JelleM4-May-06 11:52
JelleM4-May-06 11:52 
GeneralRe: Sql-guestion Pin
Christian Graus4-May-06 12:04
protectorChristian Graus4-May-06 12:04 
GeneralRe: Sql-guestion Pin
JelleM5-May-06 0:24
JelleM5-May-06 0:24 
GeneralRe: Sql-guestion Pin
Drew McGhie5-May-06 3:42
Drew McGhie5-May-06 3:42 
Are you looking to get a specific row by a primary key, or a specific row by value? From what I see, it appears that aanbodTableAdapter has no ID field of "1". The FindBy* is generated by a dataset(I'm assuming you're using one), and the * is the primary key(or keys) of the table. If the primary key doesn't exist, the findby will return null, so preforming any operations on a null datarow will fail.

Try debugging and set a breakpoint right before you make that call to check the state of your tableadapter to make sure its A) Filled, and B) has an ID key of the value you think it should.
GeneralRe: Sql-guestion Pin
JelleM8-May-06 22:52
JelleM8-May-06 22:52 
GeneralRe: Sql-guestion Pin
led mike4-May-06 11:53
led mike4-May-06 11:53 
QuestionHiding Properties at Design Time Pin
SnoopyJ4-May-06 10:16
SnoopyJ4-May-06 10:16 
AnswerRe: Hiding Properties at Design Time Pin
Josh Smith4-May-06 10:52
Josh Smith4-May-06 10:52 
Questionpassing Form as refernce to called from dynamically Pin
abhinish4-May-06 9:39
abhinish4-May-06 9:39 
AnswerRe: passing Form as refernce to called from dynamically Pin
led mike4-May-06 9:51
led mike4-May-06 9:51 
AnswerRe: passing Form as refernce to called from dynamically Pin
Josh Smith4-May-06 9:56
Josh Smith4-May-06 9:56 
QuestionPrint Visio Document with C#.NET ????? Pin
nicolas santana4-May-06 9:17
nicolas santana4-May-06 9:17 
QuestionXML string to DataTable Pin
lsugirljte4-May-06 8:36
lsugirljte4-May-06 8:36 
QuestionComboBox... Pin
KORCARI4-May-06 7:42
KORCARI4-May-06 7:42 
Questionsub report problem Pin
shabonaa4-May-06 7:24
shabonaa4-May-06 7:24 
QuestionDataset and Datagrid Pin
TheJudeDude4-May-06 6:00
TheJudeDude4-May-06 6:00 
AnswerRe: Dataset and Datagrid Pin
esjq4-May-06 20:12
esjq4-May-06 20:12 
GeneralRe: Dataset and Datagrid Pin
TheJudeDude5-May-06 3:30
TheJudeDude5-May-06 3:30 
GeneralRe: Dataset and Datagrid Pin
TheJudeDude5-May-06 6:55
TheJudeDude5-May-06 6:55 
Questioncheckbox control and rowID Pin
karinb4-May-06 5:44
karinb4-May-06 5:44 
QuestionFREE C# Material Pin
dotnetguide4-May-06 5:05
dotnetguide4-May-06 5:05 

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.