Click here to Skip to main content
15,879,683 members
Home / Discussions / C#
   

C#

 
GeneralOOP help Pin
Atazoth26-Apr-04 0:31
Atazoth26-Apr-04 0:31 
GeneralRe: OOP help Pin
Heath Stewart26-Apr-04 3:21
protectorHeath Stewart26-Apr-04 3:21 
GeneralRe: OOP help Pin
Jeff Varszegi26-Apr-04 3:44
professionalJeff Varszegi26-Apr-04 3:44 
GeneralA new open-source filebrowser Pin
Jonathan Slenders26-Apr-04 0:25
Jonathan Slenders26-Apr-04 0:25 
Generalobject oriented program help Pin
Anonymous26-Apr-04 0:10
Anonymous26-Apr-04 0:10 
GeneralDatagrid and dataset Pin
Appelz25-Apr-04 23:09
Appelz25-Apr-04 23:09 
GeneralRe: Datagrid and dataset Pin
DougW4826-Apr-04 17:19
DougW4826-Apr-04 17:19 
GeneralRe: Datagrid and dataset Pin
Jay Shankar26-Apr-04 21:58
Jay Shankar26-Apr-04 21:58 
Hi Appelz,

Following code will get you the text in the DataGrid cell where mouse is being clicked.
Paste the following code in MouseUp event of the DataGrid Control.

private void DataGrid1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{<br />
	System.Drawing.Point pt = new Point(e.X, e.Y); <br />
	DataGrid.HitTestInfo hti = DataGrid1.HitTest(pt); <br />
<br />
	if(hti.Type == DataGrid.HitTestType.Cell) <br />
	{ <br />
		string str = "";<br />
		str = DataGrid1[hti.Row, hti.Column].ToString();<br />
		MessageBox.Show(str);<br />
	} 	<br />
		<br />
}

Do revert back, whether you could achieve the functionality or not.

Regards,

Jay.
GeneralRe: Datagrid and dataset Pin
Appelz26-Apr-04 23:50
Appelz26-Apr-04 23:50 
GeneralRe: Datagrid and dataset Pin
Jay Shankar29-Apr-04 15:04
Jay Shankar29-Apr-04 15:04 
Questionhow can i get dates pupup from db ? Pin
kings_125-Apr-04 22:26
kings_125-Apr-04 22:26 
GeneralCompression Algoritm Pin
yarns25-Apr-04 22:09
yarns25-Apr-04 22:09 
GeneralDetecting when 'this' assembly gets loaded Pin
Arthur van der Wal25-Apr-04 22:08
Arthur van der Wal25-Apr-04 22:08 
GeneralRe: Detecting when 'this' assembly gets loaded Pin
pdohara28-Oct-08 5:09
pdohara28-Oct-08 5:09 
GeneralUrgent Repliy required (System tray icon dont appear) Pin
helloaamir25-Apr-04 21:49
helloaamir25-Apr-04 21:49 
GeneralDebuging Hash Table Pin
sreejith ss nair25-Apr-04 21:17
sreejith ss nair25-Apr-04 21:17 
GeneralRe: Debugging Hash Table Pin
Jeff Varszegi25-Apr-04 21:21
professionalJeff Varszegi25-Apr-04 21:21 
GeneralRe: Debugging Hash Table Pin
Heath Stewart26-Apr-04 3:19
protectorHeath Stewart26-Apr-04 3:19 
GeneralRe: Debugging Hash Table Pin
Jeff Varszegi26-Apr-04 3:36
professionalJeff Varszegi26-Apr-04 3:36 
GeneralRe: Debugging Hash Table Pin
Heath Stewart26-Apr-04 3:38
protectorHeath Stewart26-Apr-04 3:38 
GeneralRe: Debugging Hash Table Pin
Kannan Kalyanaraman26-Apr-04 8:20
Kannan Kalyanaraman26-Apr-04 8:20 
GeneralRe: Debugging Hash Table Pin
Heath Stewart26-Apr-04 8:24
protectorHeath Stewart26-Apr-04 8:24 
GeneralConsole in Windows Pin
sreejith ss nair25-Apr-04 21:11
sreejith ss nair25-Apr-04 21:11 
GeneralRe: Console in Windows Pin
hammackj26-Apr-04 1:01
hammackj26-Apr-04 1:01 
GeneralQuestion about synchronization Pin
hsupercn25-Apr-04 20:42
hsupercn25-Apr-04 20: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.