Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2005, 06:42 AM
Registered User
 
Join Date: Feb 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dungerdanish Send a message via Yahoo to dungerdanish
Default Dgrid control states in DataGrid

Hi,

I'm having a bit of a problem with datagrid binding, mixing design time columns and adding runtime template columns at runtime consisting of checkbox controls in asp.net 1.1

I add the resulting grid (design and runtime columns) to the session before displaying it to the user

if I dont add the grid to the session, then it only picks up the design tie columns when I reference it..

similarly, the grid only saves the state of controls that were added in a designtime template column

now my problem is this, I want the user to be able to manupilate the checkbox controls of the runtime added columns but how do I save the state of these controls?

I cannot use post back to register the clicking because the checkboxes are many and all names are uniquely generated at runtime for each column and are repeated rowise

as soon as the user clicks 'save' button after manupilation , at the back end I get the grid from the session which doesnt have any information about the new state of the controls and thus the state is not saved... on the other hand if I dont add the grid to the session and retrieve it later and instead reference the object directly, then I dont get any of the columns which I add at tuntime...

any ideas?





Similar Threads
Thread Thread Starter Forum Replies Last Post
objects and states deepak Java Basics 7 June 26th, 2008 03:26 AM
Pulling data from the selected recordin the DGRID MDM ASP.NET 2.0 Professional 6 April 9th, 2006 09:36 PM
Easiest way to change the orientation of a DGrid macupryk General .NET 1 October 7th, 2004 11:25 AM
When more than one field in a primery key - DGrid ManoYaka ASP.NET 1.0 and 1.1 Basics 3 January 21st, 2004 09:27 AM
Persistence of control states between posts pankaj_daga ASP.NET 1.0 and 1.1 Basics 1 November 20th, 2003 08:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.