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

New Message on BDOTNET

-----------------------------------------------------------
From: Vinu
Message 1 in Discussion

Hi all,   This query is regarding datagrids.   1. I have a LOOKUP usercontrol which is 
a common one used for all lookup related fields. Hence for me to acheive the same 
result in the Grid I did the following :   ---Declaration---- Private WithEvents 
GridHlpID_City As New AISRESX.usrHelpBase()
 ---Creating Column Definitions Dim colCityDesc As DataGridTextBoxColumn             
With colCityDesc
                .MappingName = "CityDesc"
                .HeaderText = "City"
                .Width = 150
                .ReadOnly = True
                .TextBox.Controls.Add(GridHlpID_City)
            End With
---Load GridHlpID_City.BringToFront()   2. So when ever I get the focus to the cell 
which is lookup enabled..IN the CellChanged event I pickup values from teh underlying 
row and put it on the user control so that the user is able to view the values with in 
the User Control   3. So far so good updation and retrieval are all working fine   
Problem 4 I am unable to set the focus to user control when the focus is on that cell 
containing it. ie from the previous column when I press TAB,..eventhough in the 
cellchanged event I have written the code to set the focus using the focus method ..it 
doesn't seem to get the focus..I tried .focus() as well as selectall()   ----Code in 
Current CellChanged             bm = BindingContext(dsDataSet, "Table1")
            dr = CType(bm.Current, DataRowView)
            Select Case Grid1.CurrentCell.ColumnNumber
                Case 4
                        GridHlpID_City.HlpCodeDesc = dr("CityDesc")
                        GridHlpID_City.UIDesc = dr("CityDesc")
                        GridHlpID_City.HelpSetFocus()                .....             
   .....
     End Select
 Hope I have made the problem clear. I appreciate any help I can get.   Thanks and 
Regards, Vinod

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

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