Datagridview quey(cell query)

Posted by Hahas under VB.NET on 11/15/2010 | Points: 10 | Views : 2712 | Status : [Member] | Replies : 1
Hello ,

I will appreciate if anyone could hepl me on this : I am working on a project (using vb.net and access database ). In one of my forms, i have a datagridview(includes customers table). In this datagrid i have 3 columns(Name , surname, mobile). What i want, it' s to fill the mobile field and the name and surname appears automatically.

Thank you !




Responses

Posted by: T.saravanan on: 11/17/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi Hahas,

Using TextChanged Event in your DataGridView you can get Name and SurName from Database using MobileNo.

In your DataGridView MobileNo Column set Readonly property is false other columns set True.

I had post the code for TextChanged Event in DataGrdiView Control.
Refer the following link... But its in C# just convert to VB.Net

http://www.dotnetfunda.com/codes/code963-to-call-cell-text-changed-event-in-datagridview-using-csharp-.aspx

This link for online C# to VB Conversion
http://www.developerfusion.com/tools/convert/csharp-to-vb/

Cheers :)

Thanks,
T.Saravanan

Hahas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response