473,513 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I show this query in a datagridview properly.

I have a query which has the following phrase
SELECT ... SUM(column1) AS total1...
FROM....
GROUP BY column2.... WITH ROLLUP

Now when I connect a dgview to this datasource I would like the row with the
sum of column1 (ie total1) to be quite distinguishable from the rest in the
dgview, how could I do this?
--
L. A. Jones
Nov 27 '06 #1
1 1303
Add a new datarow after binding to the datasource and put the value to the
column that you want.

chanmm

"Dave" <Da**@discussions.microsoft.comwrote in message
news:CC**********************************@microsof t.com...
>I have a query which has the following phrase
SELECT ... SUM(column1) AS total1...
FROM....
GROUP BY column2.... WITH ROLLUP

Now when I connect a dgview to this datasource I would like the row with
the
sum of column1 (ie total1) to be quite distinguishable from the rest in
the
dgview, how could I do this?
--
L. A. Jones
Nov 27 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3612
by: Pieter | last post by:
Hi, Using VB.NET 2.0, Windows Forms. I want the ToolTip to be shown on every TextBox, ComboBox and DataGridView continuously, and show the contence of these controls. Is there a way to add the...
0
2143
by: MKBender | last post by:
Hello everyone, What I'm currently trying to do is allow a user to add a row to my datagridview. I have AllowUserToAddRows set to true. And the empty now does appear at the bottom of my data. ...
1
343
by: Daniel Manes | last post by:
I'm baffled. I have a column in a SQL Server Express database called "Longitude," which is a float. When I view the table in a DataGridView, some of the numbers, which only have two decimal places...
4
4589
by: Dom | last post by:
I'm just playing around, to confirm my mental picture of what is happening in CSharp. Looks like I got the wrong mental picture, because I thought this would work. I created a class, MyDGVR,...
3
1695
by: Marco Pais | last post by:
Hi there. I have a DataGridView on a desktop application and it's being filled through the use of a Web Service, wich returns a DataSet. The I use datagrid.DataSource=mydataset.tables to bind...
8
9024
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
If I populate a DataGridView with a query supplied at runtime, boolean fields render as a CheckBox instead of just a text rendering of '0' or '1'. That is nice sometimes, but I would like the...
1
2768
by: Arved Sandstrom | last post by:
This seems to be something so simple that none of the hundred-odd tutorials and forum threads that I have looked at (:-)) apparently thinks it's a problem. In a nutshell, I have two...
0
1183
by: Andrus | last post by:
I need to view DataReader results for quick debug. I tried code below but DataGridView is empty. How to fix ? Andrus. using System.Data; using System.Windows.Forms; using Npgsql;
9
3406
by: Miro | last post by:
My current headache is proper is with the datagridview I am starting to realize that a DataGridView within vs2008 is not as 'robust' as a 'textboxfield' by default for example. Example: A...
0
7388
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
7547
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...
1
7114
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...
0
7541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5098
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4751
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...
0
3230
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.