473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

dataGrid with columns (more than 1 el. in a row)

is it possible to have a datagrid control render elements not in "single element => single row
way, but many (e.g 2) elements (ordered horizontally) per single row. I know that I can use dataList or data Repeate
to render custom HTML, however datagrid provides almost automatic paging functionality that i want to use
Or maybe is there any simple way to create DataList (or repeater) that would allow for paging

Thanks for any suggestion
Michal Januszczyk
Nov 18 '05 #1
3 907
I guess there ia a solution to that..will post that later..
By the way Pan Michal Januszczyk are u writing from Poland?
"Michal Januszczyk" <an*******@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.com...
is it possible to have a datagrid control render elements not in "single element => single row" way, but many (e.g 2) elements (ordered horizontally) per single row. I know that I can use dataList or data Repeater to render custom HTML, however datagrid provides almost automatic paging functionality that i want to use. Or maybe is there any simple way to create DataList (or repeater) that would allow for paging?

Thanks for any suggestions
Michal Januszczyk

Nov 18 '05 #2
Jon
Hi,
you can make a template column and put whatever you want in it

<asp:TemplateColumn>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Field1")%>>
<br><%# DataBinder.Eval(Container.DataItem, "Field2")%></a>
</ItemTemplate>
</asp:TemplateColumn>

Jon

Michal Januszczyk wrote:
is it possible to have a datagrid control render elements not in
"single element => single row"
way, but many (e.g 2) elements (ordered horizontally) per single row.
I know that I can use dataList or data Repeater to render custom
HTML, however datagrid provides almost automatic paging functionality
that i want to use.
Or maybe is there any simple way to create DataList (or repeater)
that would allow for paging?
Thanks for any suggestions
Michal Januszczyk

Nov 18 '05 #3
<asp:TemplateColumn><ItemTemplate><%# DataBinder.Eval(Container.DataItem, "Field1")%>><br><%# DataBinder.Eval(Container.DataItem, "Field2")%></a></ItemTemplate></asp:TemplateColumn

Thanks, but this does not work for me.
I wanted several _columns_ in a row, not several _rows_ in a row.
By inserting a "br" You force browser to display a new _row_, whereas i wanted columns

Thank
Michal
Nov 18 '05 #4

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

Similar topics

4
by: Bruce Pullum | last post by:
I have a datagrid that I am using a DataView with. All works great for the sorting of the columns. However, after I sort the column, and then try and select a data row to edit, the row selected...
3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
4
by: Glenn Owens | last post by:
I have a DataGrid web control which I've dynamically populated with template columns to be used for bulk-editting. Generally, all of the columns are textbox and/or dropdownlist child controls. ...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
8
by: Inigo Jimenez | last post by:
I have an ASP .net web application installed in a Windows 2003 server. This web application has a webform that has a Datagrid. This Datagrid is filled with the data of a SQL table. I have a...
4
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a...
7
by: BobAchgill | last post by:
I am trying to decide which of these controls to use to implement letting my user select a full row from MyList. The MyList has several columns which would be nice to sort by at run time. The...
10
by: JohnR | last post by:
I have a datatable as the datasource to a datagrid. The datagrid has a datagridtablestyle defined. I use the datagridtablestyle to change the order of the columns (so they can be different than...
2
by: Mike Baugh | last post by:
I am using visual studio 2005 to develop a form using c# I have 3 datagrids on one form. I can set the row color based on a certain value in a column. However this color applies to all 3...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.