Click here to Skip to main content
15,066,168 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I bind the Gridview with Stored Procedure and get a data.

RuleSet RuleName AccId ProjectId status

Effort A Vs B 123123 722222222 Pass
Effort G Vs R 456789 844444444 Fail
Effort M Vs W 789456 977777777 Fail

Effort P Vs Q 159489 200000000 Pass
Effort I vs U 357241 756489325 Pass
Effort E Vs J 986541 489567213 Pass


I need to display like this. Can any one help me ?

I think we need to put those Rows in loop but i don't get idea how.

RuleSet , RuleName, AccId , ProjectId, Status are different columns.
Posted
Comments
Sanjay Kunjam 6-Jul-12 8:01am
   
Now what are you getting or in which format output actually you are getting.
sharmila rao 6-Jul-12 8:30am
   
RuleSet RuleName AccId ProjectId status

Effort A Vs B 123123 722222222 Pass
-----------------------------------------------------------
Effort G Vs R 456789 722222222 Fail
-----------------------------------------------------------------
Effort M Vs W 789456 722222222 Fail
----------------------------------------------- -----------------
Effort M Vs W 789456 722222222 Fail
----------------------------------------------------------------
Effort M Vs W 789456 977777777 Fail
-------------------------------------------------------------------
Effort P Vs Q 159489 977777777 Pass
--------------------------------------------------------------------
Effort I vs U 357241 977777777 Pass
-------------------------------------------------------------------
Effort E Vs J 986541 977777777 Pass
-----------------------------------------------------------------------
I am getting like the above format.. That is Gridline format i specified as "Horizontal" so for all rows am getting Gridlines. I need it based on common ProjectID I need grid line likt this
Collapse | Copy Code
<pre lang="HTML">
RuleSet RuleName AccId ProjectId status

Effort A Vs B 123123 722222222 Pass
Effort G Vs R 456789 722222222 Fail
Effort M Vs W 789456 722222222 Fail
Effort M Vs W 789456 722222222 Fail
-------------------------------------------------
Effort M Vs W 789456 977777777 Fail
Effort P Vs Q 159489 977777777 Pass
Effort I vs U 357241 977777777 Pass
Effort E Vs J 986541 977777777 Pass

1 solution

This may help you.

GridView: Creating groups and summaries

http://www.agrinei.com/gridviewhelper/gridviewhelper_en.htm[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900