Web Development

General discussion


visual basic- adding row and deleting row from datagrid control

By rahulw ·
i am using Datagrid control in visual basic to display the data from database
in spreadsheet format where user can read data, edit data, delete data and also
he can add new record to it. I am not able to add and delete row from Datagrid
can u help me to solve the problem?
and also for your reference i am mentioned below the front-end back-end which i use:

front-end: visual basic 6.0
back-end: Mysql

Rahul P. Wavhal

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by saharnaqvi19 In reply to visual basic- adding row ...

i m sara. i read the vb and knows about datagrid.
i think if u add tha data envirnoment in ur project. this full procedure is
right click on project explorer , add then data envirnoment. when its add to ur project. click on it. u see the connection1. right click on connection one. and write the path of ur database.
test connection. when its tested. then again right click on connection1 and add command. right click on this command and go to properties. a window appears. slect the datbase object as table and object name is ur table of data base.
then place datgrid and datasourse id dataenvirnoment. ur data is retrive from data base.ok

Collapse -

by clevy01 In reply to visual basic- adding row ...

Obviously you have bound the datagrid to a source, otherwise you would not be able to view your data, but have you put in the methods to be able to update your records, such as edit and then update?

Related Discussions

Related Forums