Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Keith #1
Newbie Question - Datagrid Results
Is there a way to display the field you are GROUPING BY in a datagrid? I am doing a select count and using the GROUP BY option to display the results. When the results are displayed in the datagrid it just shows the results but not the field it is being GROUPED BY (probably getting what I am asking for).
Current Results Example
Total
10
5
7
10
I would like to see the name field I am sorting by displayed in the datagrid
Name Total
Allen 10
Beth 5
Carol 7
Tom 10
Any help is appreciated!
Thanks,
Keith
Keith Guest
-
Newbie question on focus within DataGrid
I have a datagrid that is being populated in edit mode on load (I didn't come up with the requirements, I'm just trying to make it work). Any... -
Newbie Question on Web DataGrid Focus
I have a datagrid that is being populated in edit mode on load (I didn't come up with the requirements, I'm just trying to make it work). Any change... -
Datagrid newbie question
Hey all, I'm dynamically creating X number of datagrids based on entries in a database (1 per client type thing... data is from different... -
Newbie Question: fill a dataset with results from web service call
I am trying to get a better grasp of using web services. I have had success when I have a user type something into a text box and then pass that... -
Newbie Question about datagrid select
Well, don't see my other post, so.. here goes again. I need to do a select column that when clicked shows another link button in the select... -
GregC #2
Re: Newbie Question - Datagrid Results
Hi Keith,
Just add a select distinct to to your query similiar to :
select distinct name, sum(user_item) as Total from user_items group by
user_item;
Hope this helps!
GregC
GregC Guest
-
bh_jodokast #3
Re: Newbie Question - Datagrid Results
Also you can store the current group in a variable and show it
--
bh_jodokas
-----------------------------------------------------------------------
bh_jodokast's Profile: [url]http://www.highdots.com/forums/m97[/url]
View this thread: [url]http://www.highdots.com/forums/t300578[/url]
bh_jodokast Guest



Reply With Quote

