Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > asp.net datagrid control > december 2004 > threads for december 8 - 14, 2004

Filter by week: 1 2 3 4 5

ItemDataBound Event - How to access the previous record when this event is raised in DataGrid?
Posted by NH at 12/14/2004 3:51:44 PM
ItemDataBound Event - How to access the previous record when this event is raised in DataGrid? During "ItemDataBound Event", I would like change the background color of a column in previous row depending on some condition in the column in current row. Thanks in Advance, NH ...more >>


OnDataItemBound event question
Posted by djc at 12/14/2004 3:06:26 PM
one of the columns in my datagrid shows a date. I want to display dates < the current date in red text. I believe I should be using the OnDataItemBound event for this. Here is the problem I am having. When using e.Item.Cells(4).Text I am getting the actual text displayed in the cell and not the ...more >>

Hidnig column in grid populated at runtime using DataSet
Posted by Sheikh Nabeel Moeen at 12/14/2004 12:32:45 PM
Hello, I cant seem to find a property or method to hide the ID colum in a datagrid column which is populated using a DataSet at runtime (no columns defined at design time). Any help/suggestions in this regard will be highly appreciated. Regards, Nabeel...more >>

Drop down column in datagrid
Posted by news.microsoft.com at 12/14/2004 10:02:46 AM
How can i add a drop down column in datagrid ? is standard datagrid has this capability ? thx, henyung ...more >>

Viewing A DataSet Created On The Fly!
Posted by Arpan at 12/14/2004 4:23:31 AM
This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C4E194.AB32F770 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The following code snippet creates a DataSet on the fly which is then = passed to a DataView so that the Data...more >>

Two column header rows possible?
Posted by Bill Musgrave at 12/13/2004 4:22:06 PM
We are currently creating output displaying 'Total' and 'Avg' information. Is it possible to add a row above, spanning multiple columns similar to this?: | Widgets | +----------------+ | Total | Avg | Thanks Bill ...more >>

Export Datagrid to PDF
Posted by Dave at 12/13/2004 12:11:33 PM
Okay, I have code here to export a datagrid to Excel. Can I modify it to export it to a PDF? Thanks, Function ExcelExport(ByVal DatagridID, ByVal ExportFilename) Response.AddHeader("content-disposition", "attachment; filename=" & ExportFilename & ".xls") Response.ContentType =...more >>

How can i trap the SelectedIndexChanged event on a dropdown within a Datagrids EditItemTemplate column
Posted by Dave M at 12/13/2004 11:49:54 AM
I have a datagrid with two edititemtemplate columns that contain dropdownlists, these are 1)lists manufacturers of cars, 2)lists car models for a manufacturer. i need to rebind the second dropdown with only the models for the new manufacturer that has been selected from the first dropdown, thi...more >>



conditionally display icon in template column?
Posted by djc at 12/13/2004 7:10:20 AM
I'm finishing up my first attempt at an asp.net app. I know this question is likely documented all over the place but I have a handful of things to figure out in order to finish this up and now I'm under a time constraint... so... I'm digging into a couple of things myself and posting a couple of...more >>

Best datagrid
Posted by Patrick imbault at 12/10/2004 9:42:30 AM
Please I'm looking for the best Datagrid for an ASP.NET application in terms of functionnalities and speed. Thanks Patrick Imbault ...more >>

Multiple DataBinds fail to reflect change in DataView Sort
Posted by RRB at 12/9/2004 2:12:24 PM
Hello all, I have constructed a datatable that is a subset of my dataset. I use a cached dataview as the datasource for my datagrid. For performance reasons, I have disabled viewstate on my datagrid and thus I must perform a databind on postback prior to additional processing. Where I've...more >>

Page no in datagrid
Posted by yugant NO[at]SPAM gmail.com at 12/9/2004 1:56:48 AM
hello I have a datagrid with one coloumns as Hyperlink.... <asp:datagrid Width="100%" id="dgResults" runat="server" cellpadding="5" onItemCommand="detailsClicked" OnItemDataBound="checkRated" AutoGenerateColumns="False" AllowPaging="True" PageSize="25" OnPageIndexChanged="dgResults_Paged"> ...more >>

GridView control -- SQL advanced options disabled
Posted by Bruce Chao at 12/8/2004 3:05:34 PM
This is a multi-part message in MIME format. --------------000609020904090708000408 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I was working on a GridView Control that uses a data source from a SQL 2000 server. For some reason, in the data sou...more >>

ASPX page closing slowly with large datagrid
Posted by csgraham74 NO[at]SPAM hotmail.com at 12/8/2004 8:10:46 AM
I have an issue with aspx page that displays a large datagrid. When i click a button and display the grid everyting works fine. when i click a button on the page which is a response.redirect to another page there is a very long delay before the button event is fired and the page redirects. ca...more >>

Passing code/data from code-behind to ASPX page
Posted by A. Atienza at 12/8/2004 6:45:41 AM
I have the following code in my code-behind file: DataGrid MAPPsDataGrid = (DataGrid)((((((Repeater) sender).Parent).Parent).Parent).Parent); int DocumentID = MAPPsDataGrid.DataKeys [MAPPsDataGrid.Items.Count] ; However, I want the value of the DocumentID passed to my ASPX code. How c...more >>


DevelopmentNow Blog