473,411 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

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.columns("menuitem").text=datacombo1.text
datagrid1.columns("menuitemcode").text=txtmnucd.te xt


once this datagrid is populated then i want to save this in one of the table...
Sep 3 '07 #1
1 4037
hariharanmca
1,977 1GB
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.columns("menuitem").text=datacombo1.text
datagrid1.columns("menuitemcode").text=txtmnucd.te xt


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

Expand|Select|Wrap|Line Numbers
  1. datagrid1.Row = intRowValue
columns can able to assigen.
Expand|Select|Wrap|Line Numbers
  1.  datagrid1.columns("menuitem").text=datacombo1.text
  2.  datagrid1.columns("menuitemcode").text=txtmnucd.text 
  3.  
I am not aware of datagrid, but this are the basic concepts
Sep 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: NETDeveloper | last post by:
Hi, I almost have my nested datagrid working properly. I created a datagrid on a user control and dropped that onto another datagrid. At first, I noticed when I was stepping through the code,...
2
by: Carolyn Vo | last post by:
I have been looking and looking but can't seem to find out how to get the row selected in a web control datagrid (NOT a web form datagrid!!!), and how to highlight the selected row. I'm sure this...
3
by: Ryan Liu | last post by:
Hi there, I got a NullReferenceException when delete last row in a datagrid. I had hard time to solve since it does not occur in my own code. I put a datagrid in my inherited user control,...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
1
by: thegame | last post by:
Filling One DataGrid Based on Selection from Another DataGrid - Both in Separate User Controls Hello, I have an interesting dilemma. I have an ASPX page with two user controls (two ASCXs). ...
9
by: Max Weebler | last post by:
Hi, I have a datagrid built that has an alternating item style that sets the backcolor and ForeColor of its rows. I have 4 template columns. One of them has a LinkButton embedded in it to...
13
by: pmcguire | last post by:
I have a DataGrid control for which I have also created several new extended DataGridColumnStyles. They behave pretty nicely, but I can't figure out how to implement Selected Item formatting for...
3
by: chreo | last post by:
Hello. I have datagrid. I found code to select all row in data grid (by mouse or arrow keys). This works great - user can select row and... ....and I want to go to next control. For...
2
by: jose.mendez22 | last post by:
In my code I create a sqlDataAdapter that which contains a simple select command using the Northwind DB (SELECT top 15 customerID, companyName, contactName, contactTitle From Customers). I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.