Click here to Skip to main content
15,893,487 members
Home / Discussions / C#
   

C#

 
AnswerRe: Thread Issues c# 2.0 Pin
Stefan Troschuetz27-Sep-06 1:03
Stefan Troschuetz27-Sep-06 1:03 
GeneralRe: Thread Issues c# 2.0 Pin
Trance Junkie27-Sep-06 1:06
Trance Junkie27-Sep-06 1:06 
QuestionWin32 API SetScrollInfo Question Pin
izakfick27-Sep-06 0:21
izakfick27-Sep-06 0:21 
AnswerRe: Win32 API SetScrollInfo Question Pin
Nader Elshehabi27-Sep-06 1:21
Nader Elshehabi27-Sep-06 1:21 
AnswerRe: Win32 API SetScrollInfo Question Pin
Eric Dahlvang27-Sep-06 4:39
Eric Dahlvang27-Sep-06 4:39 
QuestionXML question Pin
barak16048727-Sep-06 0:06
barak16048727-Sep-06 0:06 
AnswerRe: XML question Pin
bsohante27-Sep-06 0:14
bsohante27-Sep-06 0:14 
QuestionProblem with dataGridView_SelectionChanged event in vs2005 . Pin
hdv21227-Sep-06 0:01
hdv21227-Sep-06 0:01 
hi i use access db and vs2005.
my problem is : i want in dataGridView_SelectionChanged event show fields of my database in some controls like textbox . i done this work and i gave good result . but when i delete a record in runtime the following error shown me:
Deleted row information cannot be accessed through the row.
i use datarow for add,update,delete row and use oledbdataadapter and use this
code to access fields of database and show it in some controls :

private void dataGridView1_SelectionChanged(object sender, DataGridViewCellPaintingEventArgs e)
{
if (this.BindingContext[ds_khane1, "Khaneh_1"].Position == -1)
return;
else
{
DataTable dt = ds_khane1.Tables["Khaneh_1"];
DataRow newrow = dt.Rows[dataGridView1.CurrentCell.RowIndex];

txt_name.Text = newrow["name"].ToString();
txt_family.Text = newrow["family"].ToString();
...
}note : i was use dataGridView1_CellPainting event and solved my problem,but why the above error shown me in dataGridView1_SelectionChangedevent and how to solve problem ?
thanks.
QuestionHow to position the form on center screen Pin
engsrini26-Sep-06 23:56
engsrini26-Sep-06 23:56 
AnswerRe: How to position the form on center screen Pin
Nader Elshehabi27-Sep-06 1:04
Nader Elshehabi27-Sep-06 1:04 
QuestionDrag&Drop Pin
Nafiseh Salmani26-Sep-06 23:33
Nafiseh Salmani26-Sep-06 23:33 
AnswerRe: Drag&Drop Pin
Nader Elshehabi27-Sep-06 1:24
Nader Elshehabi27-Sep-06 1:24 
GeneralRe: Drag&Drop Pin
Nafiseh Salmani27-Sep-06 18:57
Nafiseh Salmani27-Sep-06 18:57 
GeneralRe: Drag&Drop Pin
Nader Elshehabi27-Sep-06 19:37
Nader Elshehabi27-Sep-06 19:37 
Questionabstract vs interface Pin
psamy26-Sep-06 23:17
psamy26-Sep-06 23:17 
AnswerRe: abstract vs interface Pin
J4amieC27-Sep-06 0:15
J4amieC27-Sep-06 0:15 
QuestionProblem with MdiParent when using command pattern Pin
beatles169226-Sep-06 22:54
beatles169226-Sep-06 22:54 
AnswerRe: Problem with MdiParent when using command pattern Pin
Nader Elshehabi27-Sep-06 1:11
Nader Elshehabi27-Sep-06 1:11 
GeneralRe: Problem with MdiParent when using command pattern Pin
beatles16922-Oct-06 1:45
beatles16922-Oct-06 1:45 
QuestionPost Request Pin
Support12326-Sep-06 22:44
Support12326-Sep-06 22:44 
AnswerRe: Post Request Pin
J4amieC26-Sep-06 23:22
J4amieC26-Sep-06 23:22 
QuestionRe: Post Request Pin
Support12326-Sep-06 23:41
Support12326-Sep-06 23:41 
QuestionGreat, now one more thing and then its perfect... Pin
Support12327-Sep-06 0:16
Support12327-Sep-06 0:16 
QuestionRichTextbox Pin
izakfick26-Sep-06 22:16
izakfick26-Sep-06 22:16 
AnswerRe: RichTextbox Pin
Nader Elshehabi27-Sep-06 1:18
Nader Elshehabi27-Sep-06 1:18 

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.