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 > may 2004 > threads for may 22 - 28, 2004

Filter by week: 1 2 3 4 5

Problem creating custom header when datagrid AllowPaging=true
Posted by Atanas Marinov at 5/28/2004 2:56:28 PM
I have very strange problem with custom header. I create this in PreRender event, and if datagrid AllowPaging property = is false, result looks like this: CustomerID Sells Amount=20 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec=20 ALFKI 851 491.2 960 1086 1208 ...more >>


DataGrid Command Doesn't work
Posted by A.M at 5/28/2004 11:44:33 AM
Hi, I have this column in my DataGrid: <asp:ButtonColumn DataTextField="site_name" HeaderText="Name" CommandName="Select1"> <ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle> </asp:ButtonColumn> This is how I bind the command to event handler: this.dg.ItemCommand += n...more >>

How do i refresh a datagrid from a popup window without re opening the page...
Posted by pkenty at 5/28/2004 12:11:09 AM
Hi, does any one know how to refresh a datagrid on one page from another page without having to load the whole page again Let me explain Ive got a page with 4 tabs on it with different datagrids in each tab..I have a add button on one page that open a new pop up window which allows the user to a...more >>

access control in header template
Posted by royguard NO[at]SPAM hotmail.com at 5/27/2004 7:06:14 PM
I got a label control which is dynamically created inside the headerTemplate of template column. And it is part of the datagrid. Please teach me how to read the content of that label control? I cannot use FindControl() function because it is created in runtime based on variable. And ever...more >>

How to reference hidden columns
Posted by David L at 5/27/2004 5:34:17 PM
I'm trying to reference a hidden key column in my datagrid control without success. I've set the columns up at design time through the property builder, and I've set my key column's visible property to false. In my updatecommand event I need to reference the key value for the update but I can'...more >>

Datagrid questions
Posted by lloydmonteiro NO[at]SPAM rediffmail.com at 5/27/2004 10:45:12 AM
i got couple of dotNet questions pertaining to dataGrid, if you could help me out. 1) how do i store more than one key value in the DATAKEY element. So far from what i have seen it doesnot seem possible, this is to store composite primary keys? i have found out that i need to join the compos...more >>

Paging not working in a datagrid
Posted by J. Muenchbourg at 5/27/2004 9:47:04 AM
I'm trying to use paging in a datagrid, but I can't get past the "cannot compute Count for a data source that does not implement ICollection" application error, as it does not point to a line in the code. Does the same thing even when i change the AllowCustomPaging property to AllowPaging . Wo...more >>

Disable viewstate
Posted by David at 5/26/2004 6:56:04 PM
I set grid's EnableViewState to false, when do paging, datasource is retrieved from server and grid is databinded. However no data shows in the grid for next pages....more >>



Hidden columns in execution time
Posted by Wallace Santos at 5/26/2004 12:02:48 PM
Hi, I have one datagrid where the columns are mounted in execution time and use a column template where exists a link. One necessary to make that the second column of grid that is mounted in execution time become hidden. Someone help me? And excuse my english errs ...more >>

Displaying data on same row as paging buttons
Posted by Craig at 5/25/2004 5:45:51 PM
How do you display data on the same row as the paging buttons? ...more >>

When to unload Session obejects
Posted by jorge at 5/25/2004 5:14:00 PM
Hi all, When should I remove objects that I have put in my session. The consumer of the control does not know anything about the control. I HAVE to put this guys in the session. Also, I need to know if a Button.Click event has been fired BEFORE a TextBox.TextChanged event gets fired. Which...more >>

Multiple Rows - BoundColumn/TemplateColumn
Posted by pdaniel NO[at]SPAM commonwealth.com at 5/25/2004 3:04:36 PM
I have a datagrid that I need to display the data that is bound to it in 2 lines (see below) (line 1)Account 345345435 - Smith Brokerage (line 2)Buy IBM 12 @ 34.987 12/23/2004 I have tried placing a datagrid within the parent grid, I have tried placing <br> tags i...more >>

Responding to checkbox in datagrid
Posted by Paul at 5/25/2004 2:38:18 PM
I have a datagrid in which I am displaying a column as a checkbox. A snippet of the aspx code where I use a template column to do this is shown below. I am at a loss as to how to respond to the checkbox being clicked. Any help would be appreciated. TIA Paul <asp:datagrid id="...more >>

insert blank row between records
Posted by mark at 5/25/2004 11:33:53 AM
i need to insert a blank row between each row of data - is this possible ? thanks mark ...more >>

Programatically setting a HeaderTemplate HeaderText.
Posted by andyrich_1 NO[at]SPAM hotmail.com at 5/25/2004 8:32:15 AM
I am trying to set the header text of a datagrid at run time using the following code <asp:TemplateColumn HeaderText=""> <HeaderTemplate> <asp:HyperLink id="hlLink" runat="server"></asp:HyperLink>="<%sHeadingString%> </HeaderTemplate> This doesn't work. And I can't seem to get to the obj...more >>

Is it possible to set title property on data grid cells?
Posted by mortb at 5/24/2004 2:33:20 PM
I would like to do: <table> <tr> <td title="My tool tip from DB">Some text</td> <tr> </table> Do someone have example code that sets the title property on a datagrid cell? Preferably with the title text comming from the datasource. cheers, mortb ...more >>

datagrid help
Posted by Mike at 5/24/2004 2:30:39 PM
I need to allow the user to double click on a row within the grid and when that happens I need to get detailed information on that row and display this informatin below the grid on the same page. example: header1 header2 header3 ---------------------------...more >>

scrollable grid question
Posted by Mike at 5/24/2004 11:25:13 AM
I know how to get a grid scrollable, but my question, how can I keep the Column headers and only scroll the data? example: header1 header2 - keep this permananet ------------------------------ name1 address1 - make this scroll only ...more >>

Itemcommand event uses wrong comand
Posted by daisykorse NO[at]SPAM hotmail.com at 5/24/2004 12:50:40 AM
Hi All. I have a simple web application with a single webpage. it contains a single datagrid control which loads data via a Microsoft CRM proxy without any problems. It also contains the two default linkbutton colums for Edit and Delete. I have created the Item command event handler which h...more >>

Edit Command button on alternate items
Posted by Miguel Ramirez at 5/23/2004 1:54:12 PM
Hello All, Can I hide the edit command button on alternable items? or in other case on items with certain value on a column? Best regards, Miguel. ...more >>

newbie needs help with datagrid
Posted by Mike at 5/23/2004 8:34:41 AM
I'm converting a existing .asp application to ASP.NET using Vb.NET. In my current asp application I have javascript grid and its populated from the ASP code using <%=dataitem%> and that populates the rows in the grid. How can i use the same grid and populate it with ASP.NET? Can <%= dataitem%...more >>

I need CausesValidation on Paging
Posted by Mehdi at 5/23/2004 12:15:55 AM
Hi, Does anyone know how to set Causesvalidation =true; when paging. I need to call my custom validator. Thanks for the help in advance. Regards Mehdi ...more >>

ASP.Net DataGrid VS. DropDownLists
Posted by christrumbla NO[at]SPAM hotmail.com at 5/22/2004 9:49:00 PM
Hello All, Need some help here. I posted this in the framework newsgroup and noticed this group so I'm posting it here as well. Sorry for the redundancy and/or bad etiquette. I'm building an asp.net app that uses a datagrid. I have created a template column and added a dropdownlist to it. W...more >>

How to Simulate Click Event on DG LinkButton?
Posted by cluelis via .NET 247 at 5/22/2004 8:06:09 PM
How can I programmatically simulate a click event on a datagrid linkbutton? I change the text of a linkbutton in a datagrid, then need to do some processing as though the user had clicked the linkbutton with the new text. I thought I could do it like this: *** // get datagrid item (row) D...more >>

Class 'System.Web.UI.WebControls.DataGridItem' cannot be indexed
Posted by sharmamukta NO[at]SPAM yahoo.com at 5/22/2004 1:31:15 PM
I am very new to asp.net. Please help me in resolving the error: DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name RENEW_EXIST. I get the above error with the following code in aspx page <asp:Label ID="lblRenewExist" Visible="False" Runat="server" Text='<%# Da...more >>


DevelopmentNow Blog