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

New Message on BDOTNET

-----------------------------------------------------------
From: BhavtoshS
Message 2 in Discussion

Hi Vinod,   well i have the C# code for yr solution, may be it can be of some help to 
you. To take the text box present in the grid cell which u want to focus, Follow the 
steps followed below:    //Bring the focus to the grid in which the cell is present 
(where u want
//the focus)
dgdLoad.Focus();    //Create a DataGrid Cell object and take the Cell by passing Row 
and
//Column number respectively
DataGridCell dgc = new DataGridCell(1,1); 
 //here it is 2ndrow, 2nd Column  //Make the current cell of the grid as the cell u 
have taken above i.e.
//the cell where u need the focus to be
dgdLoad.CurrentCell = dgc;    //To take the text Box of the cell where u want the 
focus to be take 
//it from the Table Styles of the grid and in that the column style
//by passing the column number where u wants the focus to be
DataGridTextBoxColumn dgtb = 
(DataGridTextBoxColumn)dgdLoad.TableStyles[0].GridColumnStyles[2];  //Focus on the 
text box i.e. in turn on cell where u need the focus 
dgtb.TextBox.Focus();    hth [Bhavtosh]

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

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