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 > march 2005 > threads for march 15 - 21, 2005

Filter by week: 1 2 3 4 5

Datagrid column width
Posted by David Webb at 3/21/2005 3:49:48 PM
Hi, I am having real trouble changing the width of a column on a datagrid. I have tried changing the size of an existing column and adding a new column with the width predefined but nothing seems to have any effect and its driving me mad. Can somebody please tell me what I am doing wrong. I ha...more >>


Different FontColors depending on Value
Posted by Jörg Reinhardt at 3/21/2005 2:27:21 PM
I want to display the text in a different color if a value in an other column ist False. How can I realice this? Many thanks in advance Joerg Reinhardt ...more >>

EditItemTemplae and Postback
Posted by Scott Friedrich at 3/21/2005 12:01:02 PM
I have a dropdownlist in the EditItemTemplate. I have AutoPostBack set to True. The page does post back on SelectedIndexChanged but I can't seem to add a handler to grab it. Anyone have a sample? Scott...more >>

UserControl inside of datagrid - loses its viewstate when datagrid is re-bound on postback
Posted by DotNetJunky at 3/21/2005 11:26:22 AM
I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it resides inside a datagrid column and i set the selecteddate property of the usercontrol from one of the DataBinder.Eval 's ... everythign works fine. The datepicker also works fine on a regular page, and will normally...more >>

Compact code
Posted by anonymous at 3/21/2005 9:15:05 AM
I have mycontrol as custom control and I need to get some data from a control on a different page. My code is below. It is working perfectly fine, but since I have 10 more label to check is it some how I can make this code is more compact? If CType(myconrtol.FindControl("lblCompany"), ...more >>

DataGrid doesn't do HTML entity encoding.
Posted by Chris Mumford at 3/20/2005 1:39:00 PM
I have a DataGrid bound to a table where one of the strings is "<Unknown>". When this is sent out via the DataGrid control as HTML it is not encoded and therefore it looks like a tag in the HTML stream. What I would expect is "&lt;Unknown&gt;". Does anybody know how to make this happen? ...more >>

Can't get text value of hidden (visible = false) column..
Posted by jef at 3/20/2005 10:32:58 AM
I'm trying to get the value of a cell in my DataGrid_UpdateColumn() event handler. I have a datagrid with 4 columns: 1 - Name, 2 - Description, 3- Button Column (Edit,Update,Cancel), 4- Primary Key Value for row The 4th column is hidden as I need the data for subsequent update to the datab...more >>

Access individual item in a datagrid
Posted by shadrik at 3/19/2005 2:16:20 PM
Hi people. I've been pulling my hair out over this one. :) Ive got a datagrid that contains values pulled from a sql query. its limited to one record because the record is unique in that it contains user login data (username password etc) When the user enters their username and password, t...more >>



Check Parent-child relationship in datagrid
Posted by Grey at 3/18/2005 11:09:05 PM
I have two data tables and forms the parent-child relation between them. However, not all parents have child row, In the datagrid, if the parent row has child records, the first image of will display "plus" picture , otherwise the image will change to "minus" picture to indicate no more dril...more >>

iterate through only one column of a datagrid
Posted by Dave Bailey via DotNetMonster.com at 3/18/2005 5:36:14 PM
I need to access the information in only one column of a datagrid. The column is column[3]. When iterating through the grid I want to find all instances where the entry is "" and change it to read "N". If the entry !+ "" then I want the entry to read "Y". Any ideas on how I can accomplish th...more >>

Container
Posted by Mike Chamberlain at 3/18/2005 4:56:16 PM
Can someone explain what the Container object is, and how it it related to data binding? I can't find any reference for it anywhere. Mike...more >>

Annoyingly simple problem
Posted by Mike Chamberlain at 3/18/2005 4:49:54 PM
Hi. Could someone help me with this simple problem? I'm trying to open a new window from a HyperLink column in my datagrid. The definition of the column is as follows: <asp:HyperLinkColumn Text="..." DataNavigateUrlField="master_id_account" DataNavigateUrlFormatString="javascript...more >>

Datagrid sorting does not work
Posted by Veeves at 3/18/2005 12:04:55 PM
I have added sorting to my datagrid. I added the event handler Private Sub dgrItems_SortCommand(ByVal source As Object, _ ByVal e As System.Web.UI.WebControls.DataGridSortCommandEventArgs) Handles dgrItems.SortCommand processSortIt(e.SortExpression) End Sub I...more >>

Group Headers in Datagrid
Posted by David at 3/17/2005 5:59:59 PM
Does the datagrid control provide a way to display records under group headers? In Microsoft Access, it's easy to create reports with detail records displayed under group headers, which is makes finding info easy for users, especially in somewhat long reports. I'd really love to be able to m...more >>

_EditCommand not firing...
Posted by jef at 3/17/2005 4:34:04 PM
I realize this should be simple... but I'm at my wits end. I'm new to ASP.NET (.NET in general) but have many years experience with VB6. I have a very simple Datagrid with 2 columns bound to a datasource. I have a ButtonColumn in the grid (my grid is called grdShow). My code behind has a grd...more >>

Using an IF statment within an ItemTemplate
Posted by David Lozzi at 3/16/2005 2:42:29 PM
Hello, I have a datagrid listing bill to addresses. One column specifies whether or not the bill to is the primary for the customer. Here's my dilemma: I would like to add the option to set another bill to to primary within the data grid. So something like this <% if container.dataitem("...more >>

Datagrid window.open
Posted by jack-b NO[at]SPAM humlog.com at 3/16/2005 2:39:12 PM
Hi, I am having trouble opening a new browser window without toolbars etc from a bound link in a datagrid. Basically my query string is an ID from the database which is connected to the URL. So far I have something like this: <a runat="server" onClick="window.open('<%# "../main/index.aspx...more >>

Datagrid postback problem?!?
Posted by Bryan Fickle at 3/16/2005 11:34:55 AM
I have a datagrid that works perfectly well. I have default paging = turned on and this is where I have a small problem. My datagrid is created via the On_Click even of my search button. When a = user selects page 2 of the grid, for example, the grid disappears. If = you press the search butto...more >>

DataGrid ItemDataBound
Posted by Ahmed H. Alawady via DotNetMonster.com at 3/16/2005 7:42:16 AM
Dear all, I Use DataGrid in my Project, I want to make every row in DataGrid selectable as make every row as hyperlink we do it on ItemDataBound event. Can any body please help me to know this code in ItemDataBound Thanks -- Message posted via http://www.dotnetmonster.com...more >>

customising PagerStyle
Posted by Joe Abou Jaoude at 3/15/2005 10:56:57 PM
hi, In a datagrid that allows paging i m using PagerStyle-Mode=NextPrev. i want to customize the pager style in order to display two images (or imageButtons)instead of the text "<" and ">" that correspond to the previous and next page. Can this be done ? thx *** Sent via Developer...more >>

dynamically create datagrid and set its datasource in VB.NET
Posted by Donna at 3/15/2005 6:59:54 PM
I try to dynamically add datagrid to my web form in VB.NET. But when I try to setup the datasource, the DATASOURCE is not the property of datagrid. Anybody know the reason? Here is my code: Public Sub CreateGrid() 'declare a new datagrid and set properties Dim DataGrid1 As New DataG...more >>

"Single record" edit control
Posted by Mike Chamberlain at 3/15/2005 5:11:57 PM
Hi. Is there a built in control that can handle editing a single record? For example, I can edit a single row within the context of a DataGrid, but I want instead to be able to click an Edit button in the grid which will then take me to a new page to edit the values for that record. I d...more >>

Showing x to y of z records
Posted by Mike Chamberlain at 3/15/2005 4:58:49 PM
Hi. I'm extending the built in DataGrid to show a summary above the header row (see subject). I am doing this by creating a new ListItemType.Item above the header row. Showing x to y of z records ---------------------------------- | header | header | header | |-----------------...more >>

How can I export a Dataview to Excel
Posted by Paul D. Fox at 3/15/2005 1:57:30 PM
I've figured out how to export a Dataset and a Datagrid, but how can I export a Dataview? Paul ...more >>

Export to PDF
Posted by vishal at 3/15/2005 11:09:47 AM
Hello everybody, I need to export a datalist to an pdf file. So basically i want to create an pdf file and open it with the datalist data. Any idea or suggestion is very very appreciated. Thanks...more >>

data grids
Posted by praveen konduru at 3/15/2005 12:37:00 AM
when ever i am clicking on a control in a datagrid the grid goes down send me a possible solution for this *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>


DevelopmentNow Blog