Subscribe to Subscribers

Online Members

baskar
More...

Forums » .NET » ASP.NET »

I need logic for the below question with proper explanation


Posted Date: 15 Jul 2012      Posted By:: naresh     Member Level: Silver    Member Rank: 602     Points: 5   Responses: 1



I have a table : employee

Employee
---------

eno ename sal
1 nani 100
2 mani 200
3 sweths 150
4 sailu 050
5 lux 120
6 pavani 030


I need the above data in the following format in grid view

" The first row value in table data should display in first row first cell of grid view",


" The second row value in table data should display in first row second cell of grid view",


" The third row value in table data should display in first row third cell of grid view",



" The fourth row value in table data should display in second row first cell of grid view",


" The fifth row value in table data should display in second row second cell of grid view",


" The sixth row value in table data should display in second row third cell of grid view",







Responses

#680414    Author: Mahesh Durgam      Member Level: Gold      Member Rank: 137     Date: 15/Jul/2012   Rating: 2 out of 52 out of 5     Points: 4

Hi,

Your question is not clear

You are telling

" The first row value in table data should display in first row first cell of grid view"

But your first row in table contains 3 columns (eno,ename,sal), you mean to say you want all 3 columns should show in first cell of grid ?

and Similarly the others

If so, then you have to do programmatically on RowDataBound of grid. The way you want to display. Else you can go with datalist, which can be customized as per your requirement.


Thanks,
Mahesh


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Showing error "There is no row at position 0"
Previous : Extra time while loading image
Return to Discussion Forum
Post New Message
Category:

Related Messages

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2013 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.