473,320 Members | 1,600 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,320 software developers and data experts.

Webpage Datagrid


I have an asp page which contains a datagrid.
Is it possible to let a user highlight or focus on a certain cell (can be
any row and any column) and extract the contents of that cell?
I have not been able to find a sample of this scenario.
Any help is greatly appreciated.
Thanks in advance for any assistance.

--
Frank
Nov 19 '05 #1
2 1085
Nothing's built in to do this. You'd have to use stylesheets and javascript
to get this behavior.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I have an asp page which contains a datagrid.
Is it possible to let a user highlight or focus on a certain cell (can
be
any row and any column) and extract the contents of that cell?
I have not been able to find a sample of this scenario.
Any help is greatly appreciated.
Thanks in advance for any assistance.


Nov 19 '05 #2
Frank,

Datagrid renders as a table. In ItemDataBound event handler you get
reference to every row. You can setup client side onclick event for every
cell to highlight the cell. If you mean accessing the cell content on the
client, you can either pass "this" parameter to the client-side onclick
event handler or operate on the dhtml model for the table the datagrid is
rendered as.

Eliyahu

"Frank L" <Fr****@discussions.microsoft.com> wrote in message
news:DB**********************************@microsof t.com...

I have an asp page which contains a datagrid.
Is it possible to let a user highlight or focus on a certain cell (can be
any row and any column) and extract the contents of that cell?
I have not been able to find a sample of this scenario.
Any help is greatly appreciated.
Thanks in advance for any assistance.

--
Frank

Nov 19 '05 #3

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

Similar topics

1
by: .Net Sports | last post by:
I'm trying to display my datagrid (everything is named correctly in the datagrid headers), but when running , it doesnt show the datagrid on the aspx webpage: ////////// //sql statements are...
2
by: Mike | last post by:
Hi, I'he a datagrid in asp.net in a C# project and binded the following dataset to it: grdAssignments.DataSource = myDataSet.Tables; but whey I run it the grid is not visible!!!? --...
2
by: Paul | last post by:
Hi, I'm pretty new to ASP.NET so not even sure how to do this correctly. On a webpage I want to display a table with rows of data from a database table (that bit I can do using datagrids etc). ...
2
by: kaczmar2 | last post by:
Hey there- I have a newbie question regarding code behind: Using inline code, I can run a simple page that binds data to a datagrid. Now, I try to take the same code and use code behind, and...
1
by: Daniel | last post by:
Hi, my web page have lots of user control. when i try to refresh the web page, i encounter a problem as below: "The page cannot be refresh without resending the information" The question is:...
3
by: Mike | last post by:
Hi, I'he a datagrid in asp.net in a C# project and binded the following dataset to it: grdAssignments.DataSource = myDataSet.Tables; but whey I run it the grid is not visible!!!? --...
3
by: Narshe | last post by:
I have a datagrid that gets bound, and on itemdatabound, there is no data. If I look at datagrid.items, there is no data in the items either. When the page is displayed, the datagrid has all the...
0
by: Matthew Speed | last post by:
I have a page that displays a list of items in a datagrid. I want to make it so I have a button that says "Add Item" Clicking the button will open a window with a list of items. The items are all...
5
by: Stephen | last post by:
Hi, I am converting webpage to Excel and its within a try catch block it creates an Excel Spreadsheet but at the sametime it gives this error ExceptionMessage:Thread was being aborted. Please...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.