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


all groups > asp.net datagrid control > september 2006

Gridview selected Row displayed on second aspx page
Posted by Newbie3 at 9/29/2006 1:53:32 PM
Hi, I am working on a Knowledgebase page that will post the selected row onto another page. So for example, I have Page1.aspx which contains my gridview. The gridview control is retrieving the data from the database and displaying it. That's working. I also have a .CS page for Page1. Page2.aspx ...more >>

optimising datagrid output, remove whitespace?
Posted by Tim_Mac at 9/28/2006 5:21:21 PM
hi, is there a way to prevent the datagrid from indenting every line in the rendered HTML. i have 20Kb of whitespace from a datagrid with 700 rows. i know paging is recommended but in my situation i need to output the entire lot. i have already removed the 450Kb of ViewState by setting ...more >>

Setting column widths in a GridView
Posted by Greg Smith at 9/28/2006 9:08:38 AM
What is the syntax for selecting a specific width of a column in a GridView? Any help is greatly appreciated. ...more >>

How do i debug a datagrid problem ?
Posted by Tony Girgenti at 9/27/2006 8:52:18 PM
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. I'm trying to display a datagrid on my web form using this code: Me.tripsDataGrid.DataSource = Me...more >>

GridView Edit Not Working
Posted by Saubz at 9/25/2006 6:47:01 AM
Hello. I have a problem with my GridView not updating. I have a GridView showing 4 fields from a database table. If all 4 of the fields have values showing in the GridView, then using the automatically generated Edit button on the GridView works just fine - the database updates. But if one...more >>

What does instantText mean in Edit method of DataGridColumnStyle
Posted by Hamed at 9/23/2006 6:11:16 PM
What does instantText mean in Edit method of DataGridColumnStyle? Regards Hamed ...more >>

DataGridView
Posted by Max3vil at 9/22/2006 12:00:00 AM
I have a DataGridView binded to an access datasource. I Would like that every cell had -1 as value will use a different style respect others cell. Any ideas ? tnx ...more >>

Programmatically assign dropdownList to a GridView control
Posted by Philjo at 9/20/2006 5:19:29 PM
Folks, I am looking for some good samples which describe how we can programmatically assign the following stuffs to a GridView control. 1. Association of a dropdownList with its data source to a grid column using EditItemTemplate 2. Can I change the auto generated Edit, Update o...more >>



Check for value in footer
Posted by zoom14151 NO[at]SPAM gmail.com at 9/18/2006 12:54:22 PM
I have a datagrid on a web page and need to find out if the first textbox in the footer has text when the user clicks an add button on the page(not the button inside the datagrid). I'm check the value in the footer to tell the user that he needs to click the add button in the datagrid before c...more >>

Newbie Gridview Problem when editing currencies
Posted by AAJ at 9/15/2006 12:00:00 AM
Hi all I posted this last week in a different group but had no response. I wonder if any of you guys can help me. I have a gridview that displays a field as a currency i.e. £100.00, which is exactly what I want. When I edit the row, the edit box for the column shows £100.00. This is w...more >>

Executing a Method when i click the template column
Posted by n.nsiva NO[at]SPAM gmail.com at 9/13/2006 11:59:15 PM
Hai All I have an problem and needs a solution, the problem is described below.. I have place a datagrid with 3 bound columns and 1 template column where on that template column i pace a link button web server control on the item template. Now what i need is whenever i click that particula...more >>

how to connect asp.net with MS-access and also how to pass data to
Posted by Jack at 9/13/2006 6:06:01 PM
hI, Anyone here know how to connect asp.net with MS-access and also how to pass data to a table? The following is the code which I have but unfortunately its not working.. Public Connectionstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:\Inetpub\wwwroot\Dee\ASPd...more >>

GridView OnItemCreated
Posted by rockdale at 9/13/2006 6:47:06 AM
Hi, Is there a event in GridView that same as OnItemCreated in DataGrid. I used to add a gif to show the sorting direction to the datagrid header in this event. But seems that I could found the event in GridView anymore, or could I use RowCreated event? Thanks a lot -rockdale ...more >>

ASP DATAGRID & SERVER SIDE EVENTS
Posted by Max Peterson at 9/13/2006 12:00:00 AM
Test Programme ..NET Framework 1.0 The aspx page is supposed to extract data from database and displayi in datagrid. I am using oledb elements and dataset/dataview objects. Using page.aspx.vb as the codebehind or using page.aspx (standalone with vbscript window_onload or vb page load events...more >>

transforming the database
Posted by Jules at 9/13/2006 12:00:00 AM
hi there in my database i have a field sex with value (m, f). when i display data in the grid i would like to display Masculin for M and Feminin for F how to i go about it. i do not want to change my database. help plz ...more >>

Linkbutton.text is empty...
Posted by JeffP NO[at]SPAM Work at 9/12/2006 2:42:56 PM
There must be an easier way.... My link button text value is always empty on ItemCommand 'gets the current datagrid Dim dg as Datagrid = e.Item.NamingContainer 'aspx has <asp:LinkButton id="btnSelectSMFC" CommandName=="SelectCallsSMFC" I've tried... dim myText = Ctype(e.Item.Command...more >>

Newbie, how to display a messagebox always on top
Posted by verci at 9/11/2006 10:14:33 AM
Hi, sorry if this seems stupid, please have patience. I'm running Win XP sp2, VS 2005 Tem, SQL Sever 2005, I've been using a gridview to display my DB information, on the Gridview_RowUpadating event handler I validate if the value entered already exist en the DB using the following. Prot...more >>

Add a new record in GridView
Posted by bruno at 9/10/2006 1:46:02 PM
I experimented inserting new rows in a table using a GridView (show footers, make all columns and commands into templatefields, add textboxes to the footer template of each column, add an Insert link in the footer, add a onInserting eventhandler…). Now, in case of an empty datasource I c...more >>

Field size in Edit mode
Posted by bruno at 9/7/2006 2:55:02 PM
Just a basic question: I have a very simple gridview with two columns, one sized 20%, the second 80% and the commandfields (Select, Edit, New) at 10%. The first column is the key. In edit mode the width of the input field in the second column is too small and I don't find the way to enlarge...more >>

DataGrid SelectedIndex selected value is wrong
Posted by kimberly.walker NO[at]SPAM consultant.com at 9/4/2006 1:25:23 PM
Im having a problem with one of my datagrids. Basically the datagrid has paging included in it and when a user clicks on page other than the first page and the user selects a row the value is stored but the problem is the value is wrong its still getting the value from the first page. I have v...more >>

Newbie, how to validate data in cells in a gridview
Posted by verci at 9/3/2006 1:20:03 PM
Hi, sorry if this seems stupid. :( How can I validate the values in each cell after editing and the update button/link has been press?, is this done trough JS? client side? Thanks and best regards ...more >>

asp:GridView 2 Columns into 1
Posted by Frenchie at 9/3/2006 12:04:46 AM
Hi, I would like to find a way to displys 2 columns into a gridview as 1 column with 2 rows for each row in my database. The first row would be a short description of the image that is in the row below. At the moment I have a column with a picture in it then a second column next to it wi...more >>

Newbie, add a button to gridview footer
Posted by verci at 9/2/2006 8:06:09 PM
Hi Can anyone help me or point me in the right direction, I'm running Win XP Pro SP2, VS2005 Team, .Net Framework 2.0 and SQL Server2005. I want to put a command button in the footer just below the links for edit and delete autogenerated by the gridview, this because I want to open anothe...more >>

Dynamic DataField
Posted by Msdn at 9/1/2006 12:38:35 PM
I have a Gridview which have 3 boundfields and 6 templatecols with imagebuttons. I would like to use this grid with different dataset and must therefore change the datafield of each boundfield based on the dataset, how do i do that at runtime ? Regards Keld ...more >>


DevelopmentNow Blog