CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 12/2/2003 9:57:39 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
molsonice
Asp.Net User
Custom DataGridColumn12/2/2003 9:57:39 PM

0/0

How does the ButtonColumn raise the events like, ItemCommand, on the DataGrid? I am creating a class that inherits from the DataGridColumn class and I'd like to raise the events on the DataGrid. Is it possible to raise events on the DataGrid that the column is attached to?
molsonice
Asp.Net User
Re: Custom DataGridColumn12/3/2003 4:29:24 PM

0/0

Ok I found my answer. What I am trying to do is create a dropdownlist column where the values in the dropdownlist act like linkbuttons. So when I select one it raises an ItemCommand event in the datagrid. What I found is that I need to create a new class that inherits from webcontrols.dropdownlist. Then I can call the RaiseBubbleEvent in the OnSelectedIndexChanged event. If I add items to this new dropdownlist class called Edit, Select, Delete then when I select one of those it fires off the OnItemCommand as well as the respected OnEditCommand, OnDeleteCommand, etc in the datagrid.

But I still have a problems with it during postbacks. In the InitializeCell event I am creating a dropdownlist and binding it. This of course is being done for each row. And I have to do this during not postback and postback. I'm not sure this is the correct way to do it because I'm getting some strange errors. Shouldn't the viewstate be able to recreate the dropdownlists during postbacks? If so does anyone have any pointers on how to do this.

Thanks.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET Data Web Controls Kick Start: Kick Start Authors: Scott Mitchell, Pages: 432, Published: 2003
User Interfaces in C#: Windows Forms and Custom Controls Authors: Matthew MacDonald, Pages: 586, Published: 2002
User Interfaces in VB . NET: Windows Forms and Custom Controls Authors: Matthew MacDonald, Pages: 580, Published: 2002
Flex 3 Cookbook: Code-Recipes, Tips, and Tricks for RIA Developers Authors: Joshua Noble, Joey Lott, Todd Anderson, Chafic Kazoun, Pages: 673, Published: 2008
Foundation Flex for Developers: Data-Driven Applications with PHP, ASP. Net, Coldfusion, and LCDs Authors: Sas Jacobs, Koen de Weggheleire, Pages: 545, Published: 2007
Flex Solutions: Essential Techniques for Flex 2 and 3 Developers Authors: Marco Casario, Pages: 872, Published: 2007
Macromedia ColdFusion MX 7 Web Application Construction Kit: web application construction kit Authors: Ben Forta, Raymond Camden, Leon Chalnick, Angela C. Buraglia, Pages: 1440, Published: 2005
Professional Adobe Flex 2 Authors: Rich Tretola, Simon Barber, Renaun Erickson, Pages: 687, Published: 2007
Developing Rich Clients with Macromedia Flex: FLEX Authors: Steven Webster, Alistair McLeod, Pages: 720, Published: 2004
Creating Mashups with Adobe Flex and AIR Authors: Chris Korhonen, David Hassoun, John Crosby, Pages: 343, Published: 2008

Web:
ASP.NET.4GuysFromRolla.com: Creating a Custom DataGridColumn Class Oct 2, 2002 ... This article, by John Dyer, examines how to customize the output of a DataGrid column by creating a custom DataGridColum class that inherits ...
CodeProject: Custom DataGrid Column: Custom DataGrid BoundColumn ... I want to show the sample which you can find custom design of your bound column of datagrid. Generally our basic requirement is the sum and average of the ...
CodeProject: SumColumn: Custom DataGrid Column that automatically ... A normal requirement in any ASP.Net application is to sum/average up the values in a DataGrid column to the Footer. In this article we will compare the ...
DotNetSlackers: SumColumn: Custom DataGrid Column that ... Dec 7, 2007 ... In this article we will compare the normal methods and later create our own custom DataGrid column "SumColumn", derived from BoundColumn to ...
Creating Custom Columns for the ASP.NET Datagrid Five built-in columns, inherited from DataGridColumn ..... you're repeating that could be neatly wrapped up into its own custom Datagrid column. ...
DataGrid Binding: Custom DataGrid Column Form : DataGrid Data ... DataGrid Binding: Custom DataGrid Column Form : DataGrid Data Binding « GUI Windows Form « C# / C Sharp.
SumColumn: Custom DataGrid Column that automatically shows Sum ... Feb 20, 2006 ... A normal requirement in any ASP.Net application is to sum/average up the values in a DataGrid column to the Footer.
ASP.NET Datagrid Girl! [Custom Datagrid Columns!] Did you know that you can create your own custom Datagrid column types? (Similar to BoundColumn, HyperLinkColumn, ButtonColumn, TemplateColumn, ...
Custom DataGridColumn DataGridItems not saving to ViewState. Not ... Talk about Custom DataGridColumn DataGridItems not saving to ViewState. Not Visible on Postback.
Safari Books Online - 0672325012 - ASP.NET Data Web Controls Kick ... The code for Listing 12.1's InitializeCell() is overly simple, and such simple syntax, unfortunately, cannot be used for most custom DataGrid column classes ...




Search This Site:










visual studio hangs when background process starts (urgent help)!!!

dynamic childnodes...hyperlinks...?

sorting a listbox

search pages

webpart manager problem???

magic.tablink

help for developing search engine

help .. somethings gone wrong with my .net installation!

quick question about output catching

open source code for rpn calculator using c#

changing the theme programaticly in the web.config

i have a problem with a "string" that has html code inside

moduleid = -1 ????

security, windows authentication, menus and roles

don't include css files in a theme's sub folders by default

censorship again

using use a cached xml file instead of db table for solpartmenu

if no record exists...

date.parse wont parse rfc1123 dates

how do i restrict users logging into the site once they have registered?

help with db search?

some advice needed on user controls

ms sql database connection problem!

how to login as different user ("bypassing" integrated windows authentication)?

new multiblog under virtual directory

reference class from another page

debug on custom module ????

date object

searching for a different kind of calendar/event module

multiple domains to point same portal, question ?

 
All Times Are GMT