473,385 Members | 1,912 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,385 software developers and data experts.

Doubt In Datagrid Fiedls: V.B 6.0

Dear All,\
I,m doing one small project in v.b 6.0 and i,m totllay new for v.b , i,v one issue can anyone kindly give me the solution,

i,m doing a invoice project they asked me to show the sales invoice and purchase invoice

i created 3 tables
1.Purchase, 2.Sales,3.Products

and i insert the values so far but in invoice they need this kind of fornat


Invno Textbox Date =Textbox

CustomerName =TextBox CustomerName=TextBox(To avoid repeated value they asked me to do this format)


ItemNo Description Qty Rate Gross (in DataGrid)






in under the Grid they asked me to show the Total in a TextBox


can anyone tell me what i,v to do coz if i give the datasource to grid it retrive all the fields so how can i retrive the particular fields and how can show the total in text box

plzzzzzzzzzzzzzzzzzzzzz its very urgent
Apr 7 '08 #1
1 959
muddasirmunir
284 100+
Dear Hussain
what i get from your query i get that you want to call only particular
fields on data grid.

you can select particular field by using this code
( i think you are using adodc for your connection to databae)

Expand|Select|Wrap|Line Numbers
  1.  
  2. Adodc1.Recordset.Open "select item,qty,rate,amount from sales"
  3.  
change the name of fields and table accordingly.
hope this help you.

if this does not work tell us the complete thing which database are
you using and how did you make connection to your database






Dear All,\
I,m doing one small project in v.b 6.0 and i,m totllay new for v.b , i,v one issue can anyone kindly give me the solution,

i,m doing a invoice project they asked me to show the sales invoice and purchase invoice

i created 3 tables
1.Purchase, 2.Sales,3.Products

and i insert the values so far but in invoice they need this kind of fornat


Invno Textbox Date =Textbox

CustomerName =TextBox CustomerName=TextBox(To avoid repeated value they asked me to do this format)


ItemNo Description Qty Rate Gross (in DataGrid)






in under the Grid they asked me to show the Total in a TextBox


can anyone tell me what i,v to do coz if i give the datasource to grid it retrive all the fields so how can i retrive the particular fields and how can show the total in text box

plzzzzzzzzzzzzzzzzzzzzz its very urgent
Apr 7 '08 #2

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

Similar topics

8
by: Ashish Shridharan | last post by:
Hi All I have been trying to add a control to the header cell of a datagrid on my ASP.NET page. These controls are defined in the HTML as ASP.NET web controls. They are being added into the...
3
by: Bill C. | last post by:
Hello, I know this has been discussed a lot already because I've been searching around for information the last few weeks. I'm trying to implement a DataGridComboBoxColumn class. I've found...
2
by: ¿ Mahesh Kumar | last post by:
- I have created a datatable as mydatatable and pointed that table to gridview...AM I CORRECT below.. --------------------------------- DataTable myDatatable=new DataTable("ParentTable"); ...
1
by: mallikarjun | last post by:
i have scanned an image and stored its details in Access database. i am able to retrive that data in to datagrid. now i want to display that image as and when i click on the datagrid control....
1
by: Cesar Ronchese | last post by:
Hi! I'm using a DataGridView to show a datatable that have many columns. When it displays data, the lines are applying wordwrap in some cells, because the grid is too wider to page. I'm...
0
by: nizam | last post by:
Hi all, i have a simple doubt. i have 2 tables Table1: Table2: qid qDESC 1 Q1 A1 2 Q2 A2 3 Q3 A3
0
by: karthi84 | last post by:
hi, can any one help me with the codes to use inbuilt datagrid edit button in visualstudio 2005.
0
by: pragadheesh | last post by:
I have a TAB where a data grid gets displayed. I want to access the elements of the datagrid. but i'm getting the following error. "Data cannot be read from a DataGrid which is not bound to a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.