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

C#

 
GeneralRe: C# convention!! Pin
Paul Watson4-Jan-04 21:41
sitebuilderPaul Watson4-Jan-04 21:41 
GeneralRe: C# convention!! Pin
Heath Stewart5-Jan-04 4:47
protectorHeath Stewart5-Jan-04 4:47 
GeneralRe: C# convention!! Pin
Paul Watson5-Jan-04 4:51
sitebuilderPaul Watson5-Jan-04 4:51 
GeneralRe: C# convention!! Pin
Heath Stewart5-Jan-04 5:19
protectorHeath Stewart5-Jan-04 5:19 
GeneralRe: C# convention!! Pin
Peter Reiter5-Jan-04 5:21
Peter Reiter5-Jan-04 5:21 
GeneralRe: C# convention!! Pin
leppie5-Jan-04 6:04
leppie5-Jan-04 6:04 
GeneralRe: C# convention!! Pin
HAHAHA_NEXT5-Jan-04 7:32
HAHAHA_NEXT5-Jan-04 7:32 
GeneralDataGrid problem plz check Pin
Hayat4-Jan-04 20:52
Hayat4-Jan-04 20:52 
private void Mousedownhere(object sender, System.Windows.Forms.MouseEventArgs e)
{
DataGrid myGrid = (DataGrid) sender;

System.Windows.Forms.DataGrid.HitTestInfo hti;

hti = myGrid.HitTest(e.X, e.Y);

string message = "You clicked ";


switch (hti.Type)

{

case System.Windows.Forms.DataGrid.HitTestType.None :

message += "the background.";

break;

case System.Windows.Forms.DataGrid.HitTestType.Cell :

message += "cell at row " + hti.Row + ", col " + hti.Column;

message += "Row Number : "+Convert.ToString(myGrid.CurrentRowIndex)+"\n\r"+

myGrid[hti.Row, hti.Column];
fscount = hti.Row;



break;

case System.Windows.Forms.DataGrid.HitTestType.ColumnHeader :

message += "the column header for column " + hti.Column;

break;

case System.Windows.Forms.DataGrid.HitTestType.RowHeader :

message += "the row header for row " + hti.Row;
fscount = hti.Row;
string cellvalue = Convert.ToString(myGrid[hti.Row,2]);
// if (cellvalue==”CHINA”)
MessageBox.Show("value is="+cellvalue,Convert.ToString(hti.Row));

break;
//BUT IF I REMOVE THE COMMENTS FROM THE ABOVE if (cellvalue==”CHINA ”) THEN IT DOES NOT SHOW ME //THE MESSAGEBOX
// WHY???????????????



}



}



GeneralRe: DataGrid problem plz check Pin
Heath Stewart5-Jan-04 4:45
protectorHeath Stewart5-Jan-04 4:45 
GeneralRe: DataGrid problem plz check Pin
Hayat6-Jan-04 6:37
Hayat6-Jan-04 6:37 
GeneralRe: DataGrid problem plz check Pin
Heath Stewart6-Jan-04 6:41
protectorHeath Stewart6-Jan-04 6:41 
Generali'm a beginner. help Pin
Forrest Feather4-Jan-04 20:26
Forrest Feather4-Jan-04 20:26 
GeneralRe: i'm a beginner. help Pin
Broken God4-Jan-04 22:16
Broken God4-Jan-04 22:16 
GeneralRe: i'm a beginner. help Pin
extremeg6-Jan-04 20:46
extremeg6-Jan-04 20:46 
GeneralRe: i'm a beginner. help Pin
Forrest Feather6-Jan-04 22:11
Forrest Feather6-Jan-04 22:11 
GeneralMAP files Pin
abc8764-Jan-04 20:17
abc8764-Jan-04 20:17 
GeneralRe: MAP files Pin
Heath Stewart5-Jan-04 4:41
protectorHeath Stewart5-Jan-04 4:41 
Generalcustom controls and video Pin
just_a_builder4-Jan-04 20:03
just_a_builder4-Jan-04 20:03 
GeneralRe: custom controls and video Pin
Heath Stewart5-Jan-04 4:13
protectorHeath Stewart5-Jan-04 4:13 
GeneralREAD/WRITE SECTORS, TRACKS, ECC... Pin
_Comet_Keeper_4-Jan-04 13:11
_Comet_Keeper_4-Jan-04 13:11 
GeneralRe: READ/WRITE SECTORS, TRACKS, ECC... Pin
Heath Stewart4-Jan-04 19:01
protectorHeath Stewart4-Jan-04 19:01 
GeneralOne Line Pin
eggie54-Jan-04 12:29
eggie54-Jan-04 12:29 
GeneralRe: One Line Pin
Christian Graus4-Jan-04 12:58
protectorChristian Graus4-Jan-04 12:58 
GeneralRe: One Line Pin
eggie54-Jan-04 13:01
eggie54-Jan-04 13:01 
GeneralRe: One Line Pin
Christian Graus4-Jan-04 13:06
protectorChristian Graus4-Jan-04 13:06 

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.