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 > november 2003 > threads for november 8 - 14, 2003

Filter by week: 1 2 3 4 5

Edit
Posted by Demetri at 11/14/2003 6:26:10 PM
I have a datagrid and is endowed with the edit/update/cancel buttons. I have a routine that handles the editcommand event for the datagrid, which sets the EditItemIndex to the e.Item.ItemIndex value - I then rebind the data. The buttons change from edit to update and cancel but the cells remain t...more >>


Datagrid header size
Posted by Mark Lyday at 11/14/2003 3:38:58 PM
I have datagrids on two different pages. In the IDE they both look the same, and as far as I can tell all the properties are set the same. When I run them the one has a header that is about 1cm tall, and the other is about 1 inch tall. It appears the one is streching to fill the space it has, ...more >>

Paging in a dg - current row?
Posted by Marc Miller at 11/14/2003 3:26:10 PM
Hello, I have a datagrid in which I change the color of the row, based on a value in a particular column. My problem is that I need to know the current row number in the data set after I page from the first page. I see the error in my ways here, since I am constantly referring to rows 0 t...more >>

Imagebutton as commandbutton
Posted by RH at 11/14/2003 12:09:19 PM
Hi, I want to use an imagebutton as commandbutton in a datagrid. When I add a column, say "delete", convert it to a template column and replace the linkbutton with an imagebutton, the button will not work. What am I doing wrong? TIA Remco...more >>

Displaying XML data as is with tags on the datagrid
Posted by Nedu N at 11/14/2003 11:10:03 AM
Hi, I want to display the XML tags (for the the XML tags is the data that is stored in a table) on the datagrid using the datasets. But since the data itself is the XML tag it doesn't appera on the datagrid since it tries to parse the data before it displays. Using Server.HtmlEncode, i was ...more >>

DatGrid TemplateColumn TextBox JavaScript ClientSide Validation?
Posted by arulrajalivi NO[at]SPAM hotmail.com at 11/14/2003 8:27:53 AM
Hi, I am using 2 TemplateColumn TextBoxs in my Grid. On the Submit button click event I want to do the validation on the client side. In the Javascript I couldn't use the ID of the Textbox, because in the HTML it has a different ID. I am trying to avoid the round trip in this scenario. Whi...more >>

update sql unique key with dataadapter
Posted by lastman NO[at]SPAM freemail.it at 11/14/2003 6:15:54 AM
I got a typed dataset of data from a Sql server and i binded them on a grid, then if the user edit the grid all changes will be sent back throw dataadapter.update. The problem is that there is a unique key with three records and if the user edit manually it switching values in the following way ...more >>

DataGrid - DataBinder.Eval
Posted by ganesh_mahadevan NO[at]SPAM syntelinc.com at 11/12/2003 11:00:00 PM
I am using a Datagrid and am populating the column header which is being picked up from a database. My problem is that if the column name conatins a "." within the name then it throws an error as follows DataBinder.Eval: 'System.Data.DataRowView' does not contain a property with the name T...more >>



Access the FooterTemplates TextBox control on the Button Click Event
Posted by arulrajalivi NO[at]SPAM hotmail.com at 11/12/2003 1:20:14 PM
Hello, I have the following code in the .aspx file <asp:TemplateColumn HeaderText="&#160;FG Name"> <HeaderStyle ForeColor="White"></HeaderStyle> <ItemStyle HorizontalAlign="Center" Width="200px"></ItemStyle> <ItemTemplate> <asp:TextBox id=txt_fg Width="200px" Runat="server" Text='<%# Data...more >>

Put a control in a Cell of DataGrid
Posted by fnadaus NO[at]SPAM netfective.com at 11/12/2003 9:04:07 AM
Hello EveryBody, i want to put Control in each Cell of my DataGrid, i don't know if it's possible... i have a table with 3 Rows and 7 Colums, and i want to click for example in the (0,1) colums to do an action. how i can do ? need help, it's very hard ! Thanks, Franck...more >>

Setting alt text in hyperlinkcolumn
Posted by Ben Fidge at 11/12/2003 5:58:52 AM
How do you set the alt-text for the hyperlink in a hyperlinkcolumn of a datagrid? Thanks, Ben...more >>

Selecting row in datagrid by clicking everyway on the item
Posted by liuc NO[at]SPAM email.it at 11/12/2003 5:41:03 AM
I would select rows in datagrid by clicking on the desired row. Someone csn tell me how i can do that? Thanks....more >>

Datagrid inside a datagrid?
Posted by Jason at 11/11/2003 1:00:19 PM
Hi Ok so i have a dataset with 3 data tables in it. I would like to be able to represent this data in the best way possible. the three datatables have relations. Although i havent created any such programmatical relationships, the tables are related. My initial thoughts were to have 1 paren...more >>

console app w/o seeing console?
Posted by Kris Rudin at 11/11/2003 11:08:12 AM
OK, here's a silly question: I want a console application to run totally un-noticed - without the console window popping up. How do I accomplish this? Thanks. -- Kris Rudin, MS, MCP Aurora Consulting Group, Inc. ...more >>

'itemcommand' event not firing
Posted by Richard Murphy at 11/11/2003 10:04:20 AM
Hi All, I've been on this problem for many hours now and checked many posts and forums but can still not find an answer. I hope someone can help. I have a Datalist (I know its not a datagrid- but close enough) with a template column in it which contains a button. The datalist is in an ascx ...more >>

Datagrid column count = 0??
Posted by Kris Rudin at 11/10/2003 3:59:24 PM
OK, I'm missing something obvious here... I have a datagrid that I populate in the code-behind page thusly: adptr = new OleDbDataAdapter("SELECT RideDate,RideName,RideDescription,Distance,Duration,AvgMPH,MaxMPH,AvgHR,MaxH R,Temperature as Temp, Conditions, Comments FROM RideInfo", dbConn); ...more >>

Formatting time as a duration?
Posted by Kris Rudin at 11/10/2003 3:34:19 PM
I have data in a database that lists duration time (hh:mm). If I give it a string format of {0:t} (short time), a value of 0:55 (55 minutes) shows up as 12:55 AM, and a value of 1:30 (1 hour 30 minutes) shows up as 1:30 AM. How can I format this as a true time duration? (It is in the database a...more >>

DataFormatString questions...
Posted by Michael Tanner at 11/10/2003 3:31:54 PM
I have 2 formatting cases that I need to handle: Case 1: an eight digit account number stored in database as such - 12345678 I need to display this in a boundcolumn as such - 1234-5678 Case 2: a number is stored in the database as such - 42 I need to display this in a boundcolumn as ...more >>

eidting two tables wthin a datagrid
Posted by f at 11/10/2003 3:10:54 PM
Apologies if this has been asked before and I have searched on the Internet to no avail. I would like to use a Datagrid to edit data held in two tables that are 'joined' by a common field. I know hoe to write the code to edit a row from one table, however, using two tables is causing me pain. ...more >>

Picture Button
Posted by Jason at 11/10/2003 2:55:14 PM
Hi I know this is probably simple, but i am running around stuck. All i want is a picture as a button in one of my columns on the datagrid control. when clicked, all that is done is a javascript "window.open()". How do i do this? Thanks Jason ...more >>

Datagrid Heading (Text - Clickable) and Row Elements (checkboxes) = Select All Feature
Posted by bthomas71chevy NO[at]SPAM yahoo.com at 11/10/2003 12:33:46 PM
I have spent all day trying to do this and have come up with a headache !! I have a DataGrid and a couple which is not bound to any data (it's a Template Column with all of the column rows as Checkboxes). Once the DataGrid is bound, it should allow the user to click on the column heading a ...more >>

ASP.NET controls in Office 2003 style?
Posted by gicio NO[at]SPAM web.de at 11/9/2003 7:11:16 PM
Hi!! I'm looking for some ASP.NET controls in Office 2003 web access style. Mainly an Outlook 2003 web access calendar control. Is something like this anywhere available? Regards, Gicio ...more >>

Bound DataGrid using nested XML
Posted by chris101 NO[at]SPAM jedlicka.net at 11/9/2003 9:17:34 AM
Hi, I am trying to use a datagrid control to display hierarchical data in a flat format essentially in a master-detail relationship. i.e. <Data> <Customer CustomerName="Customer1"> <Order OrderNumber="1"> <Item ItemName="Item1"></Item> <Item ItemName="Item2"></...more >>


DevelopmentNow Blog