473,326 Members | 2,114 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,326 software developers and data experts.

Odd Datagrid Behavior

Okay, I have a datagrid on my page, with two columns. Both of them are
Template Columns, one with a link button in it and the other with a
LABEL in it.

On the initial databind, the datagrid is built successfully, including
the HTML that appears in the label which is generated during the
ItemDataBound event.

Expected behavior is that the user will select the link button, the
datagrid hides, and a panel shows up with various controls which the
user interacts with. When the "SAVE" button is clicked, the panel
hides and the datagrid is rebound and displayed once more.

For the most part this is working perfectly, except for that LABEL
control on the re-binding after the SAVE button has been clicked. At
that point, and for that row only, the label does not display the data
generated in the ItemDataBound event.

Any thoughts?

Thanks!
- Stephen

Sep 11 '07 #1
1 1116
On Sep 11, 3:32 pm, Stephen <sswrigh...@gmail.comwrote:
Okay, I have a datagrid on my page, with two columns. Both of them are
Template Columns, one with a link button in it and the other with a
LABEL in it.

On the initial databind, the datagrid is built successfully, including
the HTML that appears in the label which is generated during the
ItemDataBound event.

Expected behavior is that the user will select the link button, the
datagrid hides, and a panel shows up with various controls which the
user interacts with. When the "SAVE" button is clicked, the panel
hides and the datagrid is rebound and displayed once more.

For the most part this is working perfectly, except for that LABEL
control on the re-binding after the SAVE button has been clicked. At
that point, and for that row only, the label does not display the data
generated in the ItemDataBound event.

Any thoughts?

Thanks!
- Stephen
All right, we discovered the issue here. Apparently, after the
ITEMCOMMAND from the button click processed, that particular row was
no longer considered an Item or AlternateItem but rather a
SelectedItem.

Sep 12 '07 #2

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

Similar topics

1
by: | last post by:
How I can autosize a DataGrid after then associate a Datasource=Dataset in Smart Devices applications or Windows forms application?? That same?? -- Cumprimentos, David de Passos...
2
by: James Lennon | last post by:
I have a WindowsForms.DataGrid that I am using to display a datatable. The datagrid is composed of TextBoxColumns. I would like to make the DataGrid have the following behavior. When a user...
0
by: MrNobody | last post by:
hey guys... I'm trying to make my DataGrid have selection behavior similar to WindowsExplorer, where I can hold CTRL to add rows to a multi-row selection. Thanks to someone else on this...
1
by: MrNobody | last post by:
Is it at all possible to override the default behavior of a DataGrid when the mouse is clicked on a row? I am having a problem where I am trying to select multiple rows in a DataGrid by...
4
by: Paul | last post by:
I sometimes get a timeout error when populating my datagrid, the code is WizardConnection.Open() UpdateCommand.CommandText = "EXECUTE sp_assign_user '" & PhysOffice.SelectedValue & "', '" &...
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...
1
by: rogo | last post by:
I'm having a problem getting the dataset to fill the datagrid. Below is the error page. Thanks for any help. -------------------------------------------------------------------------------- ...
3
by: simchajoy2000 | last post by:
Hi, I am using a datagrid which contains a dataset with several tables and I am experiencing an inexplicable behavior that I am unable to resolve. Perhaps it's due to the complexity of my...
1
by: Stephen Barrett | last post by:
I have an application that was originally built with ASP.Net 1.1. We finally got permission to migrate to 2.0. Due to time constraints we migrated the web projects to 2.0 web application...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.