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

DataGrid BoundColumns and ViewState - A Question

I understand that viewstate is not saved for bound columns, so although I
can add my bound columns in the Init event, Im not sure how I get retreive
the posted back information. Let me explain more clearly.

If I have a column which is added programatically and bound to the data then
displayed in edit mode on the webform, I have a value of lets say '22' in
the textbox control which is displayed in the cell.

I hit the update link but when the update event fires, how in heavens name
am I supposed to retreive the values displayed at postback ??
Thanks
Sep 6 '07 #1
1 1058
Sam
You can try to get it from e.Item of the DataGridItemEventArgs of the edit
event

Sam
"New Bee" <p@p.comwrote in message
news:uH**************@TK2MSFTNGP05.phx.gbl...
>I understand that viewstate is not saved for bound columns, so although I
can add my bound columns in the Init event, Im not sure how I get retreive
the posted back information. Let me explain more clearly.

If I have a column which is added programatically and bound to the data
then displayed in edit mode on the webform, I have a value of lets say
'22' in the textbox control which is displayed in the cell.

I hit the update link but when the update event fires, how in heavens name
am I supposed to retreive the values displayed at postback ??
Thanks

Sep 6 '07 #2

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

Similar topics

0
by: Funbeat | last post by:
Hi everybody, A very strange problem with WebControls : A Datagrid in an ASp.net application; Bound with a dataset through ado.net; The updatable columns are dynamically created; When I try...
1
by: Amber | last post by:
The DataGrid allows you to make columns visible or invisible on demand - even edit and other special columns. This article will show you how it is done. Some developers have reported problems...
0
by: Mike | last post by:
I've got an app with a DataTable that gets passed around and modified by datagrids on 3 different asp.net pages. Not all columns need to be displayed, but I need them all in the datagrid so I can...
0
by: Ferret | last post by:
I've found what seems to be a nasty bug in the DataGrid and Repeater classes. If CreateChildControls gets called before LoadViewState, ViewState fails to map and you end up with nothing on a...
0
by: charliewest | last post by:
I am adding boundColumns to my DataGrid via code-behind using the following code: BoundColumn bc = new BoundColumn(); bc.HeaderText = "Users"; bc.DataField = "vUserId"; bc.SortExpression =...
5
by: Reg | last post by:
Hello, I have a datagrid with a checkbox column created in VS. The user can filter the data and obtain a grid (with dimanics columns : AutoGenerateColumns=false) in which he selects the lines....
3
by: Mark Gilkes | last post by:
Hi, I have an aspx page in which I am building a DataGrid control in the code-behind dynamically. The DataGrid is declared along with BoundColumns and bound to the datasource, then added to a...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
6
by: rn5a | last post by:
When the EditCommandColumn in a DataGrid is clicked, all the BoundColumns get replaced by TextBoxes so that users can alter the data. By default, the Text in the TextBoxes are left-aligned. Is...
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.