Dear all,

Good day.
 I have one problem in vb.net while using datagrid.
Private Sub dgCustomerName_CurrentCellChanged(ByVal sender As Object, ByVal e As 
System.EventArgs) Handles dgCustomerName.CurrentCellChanged

dgCustomerName.Select(dgCustomerName.CurrentRowIndex)

txtCustomerName.Text = dgCustomerName.Item(dgCustomerName.CurrentRowIndex, 0)

dgCustomerName.Visible = False

End Sub



is my code to select an item from the datagrid and show it in the text box,

but if i select first item it won't selected(ie.,) the 'currentcellchanged'  event not 
work...

but for the second, third,..... items are selected it is displayed in the text box..

plz help me ..

with regards,

balaganesh





[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to