-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: PuneetT
Message 5 in Discussion

Hi Ajay,   If I have got your requirement correctly then try out the following 
solution:   The WinForms DataGrid control contains an overridable function     
Protected Overrides Sub OnMouseDown(ByVal e As MouseEventArgs) You can inherit a class 
from the DataGrid class and within this class just write an override of this function. 
  Protected overrides Sub OnMouseDown(ByVal e As MouseEventArgs)   Base.OnMouseDown(e) 
System.Windows.Forms.DataGrid.HitTestInfo hti = Me.HitTest(e.X, e.Y) ' hti.Row 
property will give you the row of the cell that has been clicked. ' hti.Column 
property will give you the column of the cell that has been clicked.   ' Using these 
two values you can raise an event from here passing the row id and the column id as a 
parameter.   ' Finally within the raised event, just check for the value within the 
underlying datasource using the row id and the column number. 
End Sub   I have not tested this code.... just wrote it in this editor only... hope it 
should work. In case if this solution matches your requirement and you need any 
further clarifications, please feel free to let me know.     Regards, Puneet Taneja

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to