Click here to Skip to main content
15,924,402 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Collecting data from PDF Pin
Christian Graus5-Dec-08 14:53
protectorChristian Graus5-Dec-08 14:53 
QuestionRe: Collecting data from PDF Pin
juiceboxhiro5-Dec-08 15:07
juiceboxhiro5-Dec-08 15:07 
GeneralMultiple websites running of one app.. Pin
harajuka5-Dec-08 11:15
harajuka5-Dec-08 11:15 
GeneralRe: Multiple websites running of one app.. Pin
Christian Graus5-Dec-08 14:53
protectorChristian Graus5-Dec-08 14:53 
QuestionBuilding a Dynamic Web Registration Form - How would you do it? Pin
kjmcsd5-Dec-08 10:02
kjmcsd5-Dec-08 10:02 
QuestionAdvise on getting large data details for viewing and editing Pin
nit1155-Dec-08 9:43
nit1155-Dec-08 9:43 
AnswerRe: Advise on getting large data details for viewing and editing Pin
kjmcsd5-Dec-08 10:04
kjmcsd5-Dec-08 10:04 
QuestionHow to flip an asp:DataGrid from fields on x-axis and records on y-axis to fields on y-axis and records on x-axis? Pin
Cyrilix5-Dec-08 8:24
Cyrilix5-Dec-08 8:24 
My title may not be very clear, but what it means is that normally, when we have a data set, the columns (along x-axis) refer to the properties of a specific record in the data set, whereas all the records of this data set are listed vertically (y-axis). The asp:DataGrid also works this way, in that you can have a data set with a variety of columns (BoundColumn, TemplateColumn, ButtonColumn, etc.) which all denote properties of your data. An advantage of this is that for each record, you can specify for example, that a certain column is a TemplateColumn with a DropDownList bound to another data set, allowing you to pick and choose from this data.

Given this background, the problem I'm having is that I want the records to be like new columns, and the fields to be a fixed set of rows (essentially inverting the x and y-axis of the standard data grid). If I use a pivot table (just a DataTable with a pivot function that allows you to switch the x/y-axes) as a data source, I can get the data displayed by the data grid just fine. What I can't do, however, is make it so that the data grid has "TemplateRow" (this construct does not exist) and bind certain rows to data via a DropDownList, assuming I want to make this data editable.

Does anyone know of a quick way to do this or do I essentially have to take apart the standard asp:DataGrid / spend a lot of time extending its functionality so that I can do the following:

<asp:DataGrid>
  <asp:TemplateRow>
    <asp:ItemStyle>
      <asp:DropDownList DataSource="someDataSource"></asp:DropDownList>
    </asp:ItemStyle>
  </asp:TemplateRow>
</asp:DataGrid>

AnswerRe: How to flip an asp:DataGrid from fields on x-axis and records on y-axis to fields on y-axis and records on x-axis? Pin
Christian Graus5-Dec-08 9:43
protectorChristian Graus5-Dec-08 9:43 
GeneralRe: How to flip an asp:DataGrid from fields on x-axis and records on y-axis to fields on y-axis and records on x-axis? Pin
Cyrilix5-Dec-08 20:57
Cyrilix5-Dec-08 20:57 
QuestionEmbedding Resource in ASP.Net Pin
M. J. Jaya Chitra5-Dec-08 5:33
M. J. Jaya Chitra5-Dec-08 5:33 
AnswerRe: Embedding Resource in ASP.Net Pin
ana3215-Dec-08 6:51
ana3215-Dec-08 6:51 
QuestionOverlayying Divs Pin
jonhbt5-Dec-08 2:52
jonhbt5-Dec-08 2:52 
AnswerRe: Overlayying Divs Pin
Rutvik Dave5-Dec-08 3:56
professionalRutvik Dave5-Dec-08 3:56 
AnswerRe: Overlayying Divs Pin
jonhbt5-Dec-08 7:35
jonhbt5-Dec-08 7:35 
AnswerRe: Overlayying Divs Pin
mr_muskurahat5-Dec-08 22:47
mr_muskurahat5-Dec-08 22:47 
GeneralRe: Overlayying Divs Pin
jonhbt8-Dec-08 19:26
jonhbt8-Dec-08 19:26 
QuestionGridview with Checkboxes Pin
premprakashbhati5-Dec-08 2:40
premprakashbhati5-Dec-08 2:40 
AnswerRe: Gridview with Checkboxes Pin
Brij5-Dec-08 2:44
mentorBrij5-Dec-08 2:44 
GeneralRe: Gridview with Checkboxes Pin
premprakashbhati5-Dec-08 2:51
premprakashbhati5-Dec-08 2:51 
GeneralRe: Gridview with Checkboxes Pin
Brij5-Dec-08 2:56
mentorBrij5-Dec-08 2:56 
AnswerRe: Gridview with Checkboxes Pin
Nishant Singh5-Dec-08 2:53
Nishant Singh5-Dec-08 2:53 
GeneralRe: Gridview with Checkboxes Pin
premprakashbhati5-Dec-08 3:04
premprakashbhati5-Dec-08 3:04 
GeneralRe: Gridview with Checkboxes Pin
Nishant Singh5-Dec-08 3:13
Nishant Singh5-Dec-08 3:13 
GeneralRe: Gridview with Checkboxes Pin
premprakashbhati5-Dec-08 3:20
premprakashbhati5-Dec-08 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.