working with datagrid control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bhaktija
    New Member
    • Sep 2007
    • 1

    working with datagrid control

    form is created which contains textboxes , labels , datacombos and it uses 4 tables from the database

    there is one datacombo which displays names of menuitems contained in menuitem table.when one of the element in datacombo is selected then its corresponding menuitemcode from menuitem table is displayed in the textbox on the form.till this much it is working........

    i have added a datagrid which is not connected to any table. i want to add the selected datacombo element and its corresponding menuitemcode displayed in the textbox in this grid when i click on the commandbutton .this is not working.......
    runtime error 7005 ------ rowset not available.

    on the commandbutton click event i wrote the following code---
    datagrid1.colum ns("menuitem"). text=datacombo1 .text
    datagrid1.colum ns("menuitemcod e").text=txtmnu cd.text


    once this datagrid is populated then i want to save this in one of the table...
  • hariharanmca
    Top Contributor
    • Dec 2006
    • 1977

    #2
    Originally posted by bhaktija
    form is created which contains textboxes , labels , datacombos and it uses 4 tables from the database

    there is one datacombo which displays names of menuitems contained in menuitem table.when one of the element in datacombo is selected then its corresponding menuitemcode from menuitem table is displayed in the textbox on the form.till this much it is working........

    i have added a datagrid which is not connected to any table. i want to add the selected datacombo element and its corresponding menuitemcode displayed in the textbox in this grid when i click on the commandbutton .this is not working.......
    runtime error 7005 ------ rowset not available.

    on the commandbutton click event i wrote the following code---
    datagrid1.colum ns("menuitem"). text=datacombo1 .text
    datagrid1.colum ns("menuitemcod e").text=txtmnu cd.text


    once this datagrid is populated then i want to save this in one of the table...

    Did you mention the row value like


    after this

    [CODE=vb]datagrid1.Row = intRowValue[/CODE]

    columns can able to assigen.
    [CODE=vb]
    datagrid1.colum ns("menuitem"). text=datacombo1 .text
    datagrid1.colum ns("menuitemcod e").text=txtmnu cd.text
    [/CODE]

    I am not aware of datagrid, but this are the basic concepts

    Comment

    Working...