Click here to Skip to main content
15,889,116 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to Detect Hide Form? Pin
Richard Blythe10-Mar-09 20:02
Richard Blythe10-Mar-09 20:02 
GeneralRe: how to Detect Hide Form? [modified] Pin
soulidentities10-Mar-09 20:42
soulidentities10-Mar-09 20:42 
AnswerRe: how to Detect Hide Form? Pin
Roger Wright10-Mar-09 19:56
professionalRoger Wright10-Mar-09 19:56 
QuestionDataGridView and DataSets Pin
Illegal Operation10-Mar-09 14:25
Illegal Operation10-Mar-09 14:25 
AnswerRe: DataGridView and DataSets Pin
Jack Li10-Mar-09 15:50
Jack Li10-Mar-09 15:50 
GeneralRe: DataGridView and DataSets Pin
Illegal Operation10-Mar-09 15:53
Illegal Operation10-Mar-09 15:53 
AnswerRe: DataGridView and DataSets Pin
Xmen Real 10-Mar-09 16:26
professional Xmen Real 10-Mar-09 16:26 
AnswerRe: DataGridView and DataSets Pin
Samuel Cherinet10-Mar-09 17:45
Samuel Cherinet10-Mar-09 17:45 
what you can do is provide an overload constructor for the second form that takes a datarow as a parameter
<br />
public Form2(DataRow drow):this()<br />
{<br />
//fill the data by indexing through all the values<br />
this.text1.text=drow["Name"].ToString();<br />
}<br />


and as to figuring out which data that has been selected just handle "CellDoubleClick" and/or "RowHeaderMouseDoubleClick" events and then send the datarow selected by using the selected row from the event handler argument. like in this code:

<br />
  private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)<br />
        {<br />
            new Form2(dataGridView1.Rows[e.RowIndex].DataBoundItem).Show();<br />
        }<br />


hope this does the trick for you
QuestionASCII character conversion - this is driving me nuts Pin
Bryden.Murdoch10-Mar-09 14:12
Bryden.Murdoch10-Mar-09 14:12 
AnswerRe: ASCII character conversion - this is driving me nuts Pin
harold aptroot10-Mar-09 14:28
harold aptroot10-Mar-09 14:28 
AnswerRe: ASCII character conversion - this is driving me nuts Pin
Luc Pattyn10-Mar-09 15:14
sitebuilderLuc Pattyn10-Mar-09 15:14 
AnswerRe: ASCII character conversion - this is driving me nuts Pin
Alan N10-Mar-09 16:18
Alan N10-Mar-09 16:18 
GeneralRe: ASCII character conversion - this is driving me nuts Pin
Bryden.Murdoch11-Mar-09 9:21
Bryden.Murdoch11-Mar-09 9:21 
QuestionGraph Disappear Problem vol 2 Pin
StuffyEst10-Mar-09 12:15
StuffyEst10-Mar-09 12:15 
AnswerRe: Graph Disappear Problem vol 2 Pin
Yusuf10-Mar-09 12:25
Yusuf10-Mar-09 12:25 
GeneralRe: Graph Disappear Problem vol 2 Pin
StuffyEst10-Mar-09 12:29
StuffyEst10-Mar-09 12:29 
AnswerRe: Graph Disappear Problem vol 2 Pin
Luc Pattyn10-Mar-09 15:28
sitebuilderLuc Pattyn10-Mar-09 15:28 
GeneralRe: Graph Disappear Problem vol 2 Pin
StuffyEst11-Mar-09 4:25
StuffyEst11-Mar-09 4:25 
QuestionProgrammatically Setting the Application's Privilege Level? Pin
That Asian Guy10-Mar-09 11:33
That Asian Guy10-Mar-09 11:33 
AnswerRe: Programmatically Setting the Application's Privilege Level? Pin
Ravadre10-Mar-09 13:14
Ravadre10-Mar-09 13:14 
QuestionOleDB UPDATE command throws exception Pin
Matthew Klein10-Mar-09 11:03
Matthew Klein10-Mar-09 11:03 
AnswerRe: OleDB UPDATE command throws exception Pin
Yusuf10-Mar-09 11:33
Yusuf10-Mar-09 11:33 
AnswerRe: OleDB UPDATE command throws exception Pin
Matthew Klein10-Mar-09 12:23
Matthew Klein10-Mar-09 12:23 
QuestionUpdate Database(ACCESS) from ASP page Pin
daks90610-Mar-09 10:11
daks90610-Mar-09 10:11 
AnswerRe: Update Database(ACCESS) from ASP page Pin
led mike10-Mar-09 10:25
led mike10-Mar-09 10:25 

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.