Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
QuestionHow can I Map other web?? Pin
dabuskol16-Jul-06 0:03
dabuskol16-Jul-06 0:03 
AnswerRe: How can I Map other web?? Pin
Gavin Roberts17-Jul-06 2:11
Gavin Roberts17-Jul-06 2:11 
Questionunsure about running apps of different cd's... Pin
Anthony Mushrow15-Jul-06 15:04
professionalAnthony Mushrow15-Jul-06 15:04 
AnswerRe: unsure about running apps of different cd's... Pin
led mike15-Jul-06 16:23
led mike15-Jul-06 16:23 
GeneralRe: unsure about running apps of different cd's... Pin
Jun Du15-Jul-06 16:46
Jun Du15-Jul-06 16:46 
GeneralRe: unsure about running apps of different cd's... Pin
S. Senthil Kumar16-Jul-06 6:17
S. Senthil Kumar16-Jul-06 6:17 
GeneralRe: unsure about running apps of different cd's... Pin
led mike16-Jul-06 19:59
led mike16-Jul-06 19:59 
Questionerror in database program in vs2005 . Pin
hdv21215-Jul-06 13:43
hdv21215-Jul-06 13:43 
hi i wrote a database app in vs2005 and i use oledb and mdb file.
i have a table as asami .
in form1.load i fill dataset
and my table have 3 columns and i want when table load to datagridview , values of the columns of the selected row show to textbox seperately.
i wrote this code in currentcell_changed of the datagridview for update textbox with columns of selected row :

private void dataGridView1_CurrentCellChanged(object sender, EventArgs e)
{
DataTable dt = ds_Asami1.Tables["Asami"];
DataRow currentrow = dt.Rows[dataGridView1.CurrentCell.RowIndex]; ->error occured in this line when i delete selected row
txt_code.Text = currentrow["id"].ToString();
txt_name.Text = currentrow["name"].ToString();
txt_family.Text = currentrow["family"].ToString();
}

to this section my program was work correctly .. but when i delete a row in runtime by delete button .. vs2005 show me this error :

Object reference not set to an instance of an object.
i used this idea in vs2003 without error but when i use datagridview in vs2005 the above error occured .
how to solve my problem ??
AnswerRe: error in database program in vs2005 . Pin
led mike15-Jul-06 16:31
led mike15-Jul-06 16:31 
GeneralRe: error in database program in vs2005 . Pin
hdv21215-Jul-06 21:15
hdv21215-Jul-06 21:15 
GeneralRe: error in database program in vs2005 . Pin
Stefan Troschuetz15-Jul-06 22:25
Stefan Troschuetz15-Jul-06 22:25 
QuestionPrnScr Pin
TAREQ F ABUZUHRI15-Jul-06 10:56
TAREQ F ABUZUHRI15-Jul-06 10:56 
AnswerRe: PrnScr Pin
Paul Conrad15-Jul-06 11:05
professionalPaul Conrad15-Jul-06 11:05 
AnswerRe: PrnScr Pin
Robert Rohde15-Jul-06 11:09
Robert Rohde15-Jul-06 11:09 
AnswerRe: PrnScr Pin
Ravi Bhavnani15-Jul-06 12:48
professionalRavi Bhavnani15-Jul-06 12:48 
QuestionArranging a web page to print it. Pin
orentuil15-Jul-06 10:20
orentuil15-Jul-06 10:20 
AnswerRe: Arranging a web page to print it. Pin
Asif Sayed15-Jul-06 19:34
Asif Sayed15-Jul-06 19:34 
AnswerRe: Arranging a web page to print it. Pin
orentuil15-Jul-06 20:06
orentuil15-Jul-06 20:06 
GeneralRe: Arranging a web page to print it. Pin
orentuil16-Jul-06 10:27
orentuil16-Jul-06 10:27 
QuestionAdding Data-Connection to a form Pin
Grant Lindsay15-Jul-06 8:02
Grant Lindsay15-Jul-06 8:02 
QuestionDrawing on the Desktop Pin
bneacetp15-Jul-06 7:42
bneacetp15-Jul-06 7:42 
AnswerRe: Drawing on the Desktop Pin
Judah Gabriel Himango15-Jul-06 9:08
sponsorJudah Gabriel Himango15-Jul-06 9:08 
AnswerRe: Drawing on the Desktop Pin
Jun Du15-Jul-06 12:34
Jun Du15-Jul-06 12:34 
GeneralRe: Drawing on the Desktop Pin
bneacetp26-Jul-07 17:43
bneacetp26-Jul-07 17:43 
Questionerror DataSet Fill Pin
TAREQ F ABUZUHRI15-Jul-06 4:42
TAREQ F ABUZUHRI15-Jul-06 4:42 

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.