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

DataGridView control C# as the programming language to use

Hi guys,

Greetings!

Here are my questions. (I'm pretty new hope you can guide me)

1. Can we use DataGriedView control to include a unbind and bind source (can we mix them)?

2. Im sure you are familiar with a shopping or similar to ordering

Customer Name:

(DataGridView Control)
Quantity ProductNames Unit UnitPrice Total


What should be the best strategy here, should I create a transaction table?
Where I have all the required fields such as the customerID, customerName, Quantity, ProductNames, Unit, UnitPrice, Total ???

What im thinking is that Quantity and Total is unbound source then productNames and Unit is in one table like Products and Units table respectively? Then I just populate the ProductNames using a conbo box as well as the Unit?

Please guide me accordingly.

If you could create a live sample that is really similar to what Im discussing will be highly appreciated.

You can send your kind help through my email at amcasperforu@yahoo.com

Thanks,

Casper
Sep 5 '06 #1
4 3573
sainin
13
Just a clarification.. Is it a Windows app or Web application? DataGrids are quite different in those scenarios.
Sep 5 '06 #2
Just a clarification.. Is it a Windows app or Web application? DataGrids are quite different in those scenarios.
Good clarification its a windows app. Thanks
Sep 5 '06 #3
Good clarification its a windows app. Thanks
Please help Me guys!
Sep 6 '06 #4
sainin
13
So you want to use a bound and unbound dataset to populate the control. Here are the steps:

- Create a third dataset (or datatable or dataview or whatever you are using).
- Populate it with the bound data and then unbound data.
- Use it to populate your control.

Best
Sep 7 '06 #5

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

Similar topics

3
by: David | last post by:
I'm creating a C# (.NET BETA2) Windows application (NOT a Web application, a Windows application), and I would like to programmatically selecting a row inside of a DataGridView. It seems like it...
1
by: Rich | last post by:
Hello, I am reading data from a sql server table that is under replication. This table has the replicatin GUID column that is generated with replicatin. I am reading the data from a...
2
by: bob | last post by:
Can anyone tell me the best way to update a dataset while it is being edited/viewed in the DataGridView control? Is this something that should be inserted into one of the grid's events? or should...
1
by: George | last post by:
Hi, I have a DataGridView, bounded to a DataTable which is populated/updated by a OleDbDataAdapter (with OleDbConnection) to an Access Database. (Sounds familiar to some of you ... I have...
2
by: M R | last post by:
I need to build and display a huge data grid (roughly 5000x5000). (I know it is difficult to view, but i need to do it anyway) the immediate problem i am facing is that it takes a VERY long time...
0
by: jeastman - Hotmail | last post by:
Hello world Excuse, not to be written English and it helps me with a translator. I am new programming in C#. I made a control inheriting the DataGridView to be able to add controls done by...
1
by: Jeff | last post by:
Hey ..NET 2.0 I've created a User Control which contain a DataGridView. This User Control is displayed on a TabPage. This TabPage is added to the TabControl during runtime. The problem is...
6
by: Miro | last post by:
Sorry for the cross post. I am stuck. I have a datagridview for poker rounds. Basically there are 3 columns in this datagridview. "Round" "SmallBlind" "BigBlind" I have an issue when I tab...
0
by: priyamtheone | last post by:
I'm trying to make a datagridview column to act like a datetimepicker column (C#.Net 2005). These are the behaviours that the dgv should have: 1) Initially all the cells of the dtp column should be...
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
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
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,...
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: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.