473,396 Members | 1,755 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.

GridView (or table) on web site in asp.net

hi
I need to put a grid on my website. The best would be something like the
same datagridview in c# (where you can set width of the column, reorder of
the columns etc). Unfortunatelly I haven't found any similar in asp.net.

What I need to do is:
- to be able to set the width of the columns and the height of the rows (if
any text is longer than cell it should be truncated, can it be done
automatically or should I write my own function?)
Nov 28 '06 #1
3 1129
If you need to re-order and resize columns on the client then you will need
to get a 3rd party grid, the best I have seen of these for style and
usability is ComponentArt (www.componentart.com).
You can do these things on the server with the normal datagrid but it takes
code.
Ciaran O'Donnell
"Chris" wrote:
hi
I need to put a grid on my website. The best would be something like the
same datagridview in c# (where you can set width of the column, reorder of
the columns etc). Unfortunatelly I haven't found any similar in asp.net.

What I need to do is:
- to be able to set the width of the columns and the height of the rows (if
any text is longer than cell it should be truncated, can it be done
automatically or should I write my own function?)
Nov 28 '06 #2
It is not a solution for me... anyway I have next question.
I want to edit rows in the datagrid (by built-in update method of datagrid
properties). I can do that, I can update db. The problem is how to validate
the input data. For expample there is a date in one column of the datagrid.
If the user
put a wrong date, I would like to be able to show him a message.

Moreover, there will be another column. It would excellent if I could put
there a combobox to let a user choose a proper value. Is it possible?
"Ciaran O''Donnell" wrote:
If you need to re-order and resize columns on the client then you will need
to get a 3rd party grid, the best I have seen of these for style and
usability is ComponentArt (www.componentart.com).
You can do these things on the server with the normal datagrid but it takes
code.
Ciaran O'Donnell
Nov 28 '06 #3
For this you need to use template columns. You can then put validators in the
Edit templates.
There are examples for template columns in the help files.

--

Ciaran O''Donnell
http://wannabedeveloper.space.live.com
"Chris" wrote:
It is not a solution for me... anyway I have next question.
I want to edit rows in the datagrid (by built-in update method of datagrid
properties). I can do that, I can update db. The problem is how to validate
the input data. For expample there is a date in one column of the datagrid.
If the user
put a wrong date, I would like to be able to show him a message.

Moreover, there will be another column. It would excellent if I could put
there a combobox to let a user choose a proper value. Is it possible?
"Ciaran O''Donnell" wrote:
If you need to re-order and resize columns on the client then you will need
to get a 3rd party grid, the best I have seen of these for style and
usability is ComponentArt (www.componentart.com).
You can do these things on the server with the normal datagrid but it takes
code.
Ciaran O'Donnell
Nov 28 '06 #4

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

Similar topics

0
by: Anders | last post by:
Hi I want to add a panel that spans across the entire GridView (Table) in the edit template. The EditTemplate as i Can see it as per Coloumn. Eg one for Name and one for Street.. But if i want...
1
by: Japskunk | last post by:
I am having trouble updating a SQL table through the GridView "Auto" Enable Edit Feature... I am connecting to a SQL 2000 Server with a SQLDataSource I have created the Update Query in the Command...
10
by: =?Utf-8?B?Q2hyaXMgRy4=?= | last post by:
How would I output a row for the Computed sums? I just want to append it as a row at the bottom of my gridview table.
1
by: shapper | last post by:
Hello, Some time ago I visited two really good web sites with many code examples and demos: one focused on ASP.NET 2.0 Mail class. The other on ASP.NET 2.0 Gridview. I tried to find both in...
0
by: mike11d11 | last post by:
Could someone give me some tips on how to move records from one gridview table to another by using drag and drop feature. Any help is greatly appreciated!
1
by: simonakiki | last post by:
i have a griview that contain > 200 rows so i need to fixe the header this is the code to create my gridview </table> <table> <tr> <td style="height: 261px">
3
by: Shailesh Patel | last post by:
Hi, How do I export Html table to excel file? Thank you in advance. Shailesh
1
by: Durango2008 | last post by:
Hi, I am having a bit of trouble with my gridview table and the width of the columns. The gridview is made of Templates that contain LinkButton controls. The LinkButtons will display a string...
2
by: =?Utf-8?B?TWFoYXZpciBTaGFo?= | last post by:
hi, in c# asp.net gridview when we see page running, and check it's source. you can see that it has something like this at gridview table </tr><tr> <td>22/06/2007</td><td>45000</td>...
1
by: nirmala26 | last post by:
Hi All, I am using C#.net to develop a web application. I have a gridview and a table displaying two different lists of data. I want to have the backcolor of the cell (of both gridview and table)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.