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 > november 2005

Filter by week: 1 2 3 4 5

global.asax
Posted by Gomathi at 11/30/2005 3:24:56 PM
hi all, I want to send mail during my application crashes. I wrote my method in application_end event in global.asax. Its working fine when i'm running through visualstudio.net. When i tried by stopping my IIS server, it doesnt work. Where i have to write my method to get fire when my applica...more >>


Checkboxes in DataGrid are not submitting a value
Posted by brian at 11/29/2005 1:41:03 PM
I am familiar with creating TemplateColumns in dataGrids which contain a checkbox control. I have successfully implemented deletion routines, where, upon a button_Click event, mulitple items are deleted from the dataGrid. For example, this loop might be inside of my button_Click events: f...more >>

Extra colspan
Posted by Tumurbaatar S. at 11/29/2005 12:00:00 AM
If any column (in my case, the 1st column) of a DataGrid is hidden (Visible=false), a pager row that has one cell by default does not exclude the hidden column from its colspan attribute. For example, if there're total N columns and one of them is hidden, the pager rendered with "colspan=N"...more >>

Takes two clicks to fire event?? Please help!
Posted by treilly via DotNetMonster.com at 11/28/2005 4:39:56 PM
Hey guys, This is really starting to annoy me. In short, I have a datagrid with a buttoncolumn in the first column. Once a user clicks on a button in this column, it fires the OnItemCommand correctly. In the OnItemCommand function, I then replace the control that fired with a different one ...more >>

Visual design tools and DAL in VS 2005 / .NET 2.0
Posted by Paul Aspinall at 11/27/2005 10:48:40 PM
Hi I wrote quite a few apps with .NET 1.0 and 1.1, which made use of a Data Access Layer, and also used the Microsoft Application Blocks for Data Access (v2). In VS 2005, there is a huge improvement in 'visually' designing the data access, and binding it to the controls on the form. I h...more >>

What is the Equivalent of the CurrentRowIndex Property for a DataGrid Web Control?
Posted by .NETn00b at 11/26/2005 11:46:05 AM
What is the equivalent of CurrentRowIndex for the DataGrid control in ASP.NET? I am trying to convert the following windows app method, to use in an ASP.NET application: private void DataGrid1_CurrentCellChanged(object sender, EventArgs e) { int c = DataGrid1.CurrentRowIndex; ...more >>

Dynamic columns and NamingContainer
Posted by Tumurbaatar S. at 11/26/2005 12:00:00 AM
I dynamically add columns to DataGrid as described in MSDN articles "Top Questions about the DataGrid Web Server Control" and "Creating Web Server Control Templates Programmatically". The columns are template based and all they use a same template producer. In the edit mode (ListItemType.EditIte...more >>

Inserting Special Characters
Posted by eagle at 11/25/2005 10:50:17 AM
Is there a way to put a special character in a heading on a grid, such as a checkmark (asc 3882 I believe)? so that it looks like this: Check Me Ö ...more >>



Mouseover, mouseout, click etc on datagrid.
Posted by johnnydublin NO[at]SPAM gmail.com at 11/25/2005 2:50:55 AM
Hi there, Does anyone know of a way that I can specify javascript functions that are to be run when a cell is clicked, mouse over etc in a datagrid without attaching the function to every single cell? I have a diary view with resources across the top and times down the X axis which means it c...more >>

How to load datagrid in edit mode?
Posted by ashtek NO[at]SPAM gmail.com at 11/24/2005 11:12:03 PM
Hi, Is there any way I can load a datagrid in edit mode (example : 2nd row should be in edit mode whe the page loads for the first time) when a page is loaded for the first time? The scenario is like this : I have a webpage with a table which has n number of columns. One of the columns in ...more >>

Button column
Posted by Kiyomi at 11/24/2005 12:00:00 AM
Hello, Could we have more than one "Edit, Update, Cancel" button column in one DataGrid ? If it is possible, how can we manage in the code behind EditCommand, UpdateCommand and CancelCommand for each button ? I would like to have two buttons, "Validate" and "Reject", and make them as EditC...more >>

Tabbing index
Posted by eagle at 11/23/2005 9:28:07 AM
Is there a way to not allow a user to tab to an item? I have several labels & textboxes in the grid and don't want the user to tab to them. I have other controls in the grid that they can tab to, such as edit & delete columns. Thank you for your help. ...more >>

Dynamically adding controls
Posted by treilly at 11/22/2005 8:13:42 PM
Hi all, I currently have a datagrid with a buttoncolumn and a few other boundcolumns. Once a user clicks on a button in the buttoncolumn, I need to remove that control and put another control in it's place. I am having no luck whatsoever in doing this. I have made a new LinkButton in my code-b...more >>

Date Time question
Posted by mark at 11/22/2005 1:23:23 PM
Hello I search SQL DB and display results to an APS.Net page using <asp:repeater /> One of the columns is a Date in the Database SmallDate . When I display it the page it shows Date and Time. How can I get rid of Time and have only date displayed. All help is greatly appreciated. ...more >>

Export Datagrid to PDF
Posted by Jay at 11/21/2005 7:15:41 PM
Is there a FREE way to export a datagrid (or entire page) to a PDF file? I've heard a lot about Crystal, Reporting Services, etc, however, I need a FREE method to accomplish this using notepad... don't even have Studio. Thanks a lot. ...more >>

new colum
Posted by Bishoy George at 11/20/2005 12:00:00 AM
Hi, I have a datagrid that has 2 columns that is filled from database, I want to add a column each cell of it will have a check box control. Please help ...more >>

How to detect selected items?
Posted by Bishoy George at 11/20/2005 12:00:00 AM
I have a datagrid with a template column in its template item I put a check box. How to determine which check boxes are selected when a button is clicked. Notice: these check boxes are separate and are not check box list items. Thanks alot ...more >>

DataGrid Paging
Posted by Bishoy George at 11/20/2005 12:00:00 AM
After I made a datagrid paging to true, still the paging links are not working , how to make them work. Any help please. Thanks ...more >>

Copying DataRows to another DataTable
Posted by Nathan Sokalski at 11/18/2005 8:33:54 PM
I am writing an ASP.NET application in which I need to copy DataRows from one DataTable to another. When I use code such as the following: temprows = nodes.Select("state='PA'") temptable.Clear() For Each row As DataRow In temprows temptable.Rows.Add(row) Next I recieve the follow...more >>

DataGrid Buttons causing validation
Posted by Tina at 11/18/2005 9:58:19 AM
the Edit, Update, Cancel, and Delete buttons in my datagrid are causing validation elsewhere on the page. I want to specify that these buttons should not cause validation but they have no design time property of causevalidation. How can I keep them from causing validation? Thanks, T ...more >>

Validation Between Controls
Posted by DS at 11/17/2005 9:16:53 AM
I have a datagrid with several fields with textboxes and drop downs. I want to be able to validate the drop down field in one column to only be required if the textbox field in another column has data. Does anyone know how to do this? I tried to use the compare validator and the custom validator...more >>

Datagrid Formatting
Posted by jmawebco at 11/16/2005 12:02:24 PM
I am trying to find out if it is possible to format a datagrid to display results in teh following manner; Job: 5453 South Ridge Lane Contract: CINERGY 2005 Claim # Date of Loss Claimant 20052254 09/23/2005 Edward Johnson Basically data for a job is selected using a stored ...more >>

Row Selector Column
Posted by Terry Holland at 11/16/2005 11:25:46 AM
I have created a custom control that dynamically creates a datagrid at runtime. The datagrid is made up of a collection of custom columns. One of my custom columns is a Row Selecter column. This comprises a Checkbox for each row and one in the header of datagrid. My row selection is working...more >>

Creating Datarow
Posted by Arne at 11/15/2005 8:17:07 AM
I can add a datacolumn to a datarow at any time. How can I add a datarow to a table in a dataset?...more >>

RequiredfiledValidator and regularexpressionvalidator in DataGrid footer
Posted by Patrick.O.Ige at 11/15/2005 12:00:00 AM
I have a Datagrid with Update,Delete and Edit buttons. And on the footer i'm adding a new ROW to the DataGrid I placed RequiredfiledValidator and regularexpressionvalidator in the Footer of a DataGrid so that i can validate the TextBoxes but when i click the Submit button in the Footer it doesn...more >>

How to find a dataset had values
Posted by Gomathi at 11/15/2005 12:00:00 AM
hi all, In ASP.Net , i'm binding a dataset to a datagrid. Its showing error when the dataset has no values. So I have to find whether dataset has any values or not. How to do that? Thanks in advance. Regards, Gomathi ...more >>

Sorting
Posted by Arne at 11/14/2005 11:17:09 AM
I have a datagrid which is sorted one way. I have to run through the dataset and add some data. When I am done I would like to change the sort order. How can I do that?...more >>

Gridview - how to delete row using stored procedure?
Posted by dotnw NO[at]SPAM hotmail.com at 11/14/2005 6:33:15 AM
If I want to delete a row in a GridView control using a stored procedure, what do the DeleteParameters look like? Do I use an asp:ControlParameter? Do I use an asp:Parameter? I also thought perhaps trying to incorporate the GridView's DataKeyNames property somehow - so, when you click on ...more >>

No. of rows displayed in paged datagrid
Posted by Andrew Chalk at 11/11/2005 7:55:50 PM
I have a DataGrid with AllowPaging="True" and AllowSorting="True". It works, but always displays 10 rows. How do I customize this? Many thanks. ...more >>

DataGridView
Posted by Jasper Kent at 11/11/2005 12:00:00 AM
I'm trying to format a DateTime bound column with the new DataGridView in VS2005. I set the DataFormatString to "{0:d}" (which should give me the date only) and I get the general format (including time). None of the possible formatting options seems to make a difference. Formatting a num...more >>

Subprocedure for Oracle's SET DEFINE OFF command
Posted by Nathan Sokalski at 11/10/2005 6:04:25 PM
I want to create a procedure in ASP.NET to run the "SET DEFINE OFF" command in an Oracle database. I tried the following: Public Shared Sub SetDefineOff() Dim myconnection As New OracleConnection(ConfigurationSettings.AppSettings("connectionstring")) Dim cmdsetdefineoff As New OracleCom...more >>

Combining 2 Fields Using ListBox.DataTextField
Posted by Nathan Sokalski at 11/9/2005 6:08:17 PM
I have a ListBox control which I am using with databinding. However, the text that I want to be displayed is a combination of two fields (in this case, first and last names). What do I enter as the DataTextField property to combine these two fields? Thanks. -- Nathan Sokalski njsokalski@ho...more >>

datagrid manipulation issue
Posted by ralf at 11/9/2005 9:52:02 AM
I am using vb.net, and here is what I am trying to do. I have a datagrid that has lots of rows. The user has to either update or delete each row. If the user has scrolled a long way down the page, which happens, and deletes or updates a row, the databinding forces the page to reload and the ...more >>

Style changes based upon Data Values
Posted by e2biz at 11/8/2005 1:22:05 PM
I want to change the style of a data presented based upon the value of the data. For example, I if the value is positive I want it to appear black but if it is negative I want it to be red. Any suggestions would be helpful! -- Rob...more >>

page view state for sort expression datagrid
Posted by cindy at 11/8/2005 9:42:04 AM
using the ASP.NET datagrid control to displaying some data from SQLserver, also provide paging and sorting function for the datagrid. However, after sorting a certain bouldcolumn, if change the page index , the new paged data is not sorted? How do I store a variable in Page's ViewState to...more >>

data base deletion in data grid
Posted by goodwill at 11/8/2005 7:11:50 AM
how do i delete a record by using delete button in data grid -- goodwill ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------ ...more >>

Datagrid e.Item.Cells(1) argument was out of range
Posted by Del at 11/8/2005 12:19:02 AM
I'm creating a dynamic datagrid using Dim objbc As New BoundColumn, etc. The datagrid is populating correctly. I am also using first column of grid as 'edit', on clicking this the update link is displayed and textboxes are returned. All good so far. When I change the values in the text box ...more >>

DataGrid EditItemCommand : must click twice to make DataGrid Editable
Posted by Diane at 11/7/2005 10:38:12 PM
Hey- I am having trouble with a simple datagrid example, and need some advice if anyone is knowledgable. It's really driving me batty! I've searched newsgroups and help sites but nobody seems to have an answer that makes things work, although lots of folks seem to have had this problem befo...more >>

Stumped on dropdownlist, editcommand
Posted by jhcorey NO[at]SPAM yahoo.com at 11/7/2005 12:27:58 PM
I've been googling this and know it's been covered often, but I can't get mine to work. I'm using a dropdown list when editing the record in the datagrid. I'm using an arraylist (although I'm willing to change) to populate the dropdown. The problem is selecting the item in the dropdown that...more >>

How about giving www.aspnetfaq.com a test ride ?
Posted by Juan T. Llibre at 11/7/2005 12:00:00 AM
Hey, guys. How about giving http://www.aspnetfaq.com/ a test ride ? Especially, check out the search facility. Make sure that you hit the Search button, though. I have not yet set the default behavior to Submit when you hit enter. Also, check the selection by category and the FAQ selectio...more >>

Dynamically Adding DataLists
Posted by Nathan Sokalski at 11/6/2005 5:30:07 PM
I have a page on which I want to display several sections each of which contain a list of names. I have two database tables, one of which contains the section headings, and the other contains the names and which section they belong to. I would like to use databinding to display this informatio...more >>

Repeating horizontally
Posted by Owen Blacker at 11/4/2005 11:25:31 AM
Bear with me, this query isn't fun. I'm building an e-commerce site and the Information Architecture for the Product Comparison page requires repeating horizontally: +----------+--------------+--------------+--------------+--------------+ | | [Image] | [Image] | [I...more >>

Repeating horizontally
Posted by Owen Blacker at 11/4/2005 11:25:24 AM
Bear with me, this query isn't fun. I'm building an e-commerce site and the Information Architecture for the Product Comparison page requires repeating horizontally: +----------+--------------+--------------+--------------+--------------+ | | [Image] | [Image] | [I...more >>

Complex DataGrid
Posted by zhuang at 11/4/2005 6:59:19 AM
Hi, Based on the article I have read so far, I know we could customize datagrid at column level, how about cell level? What I want to achieve is the datagrid only have one column, some cells are just like normal BoundColumn, some of them are comboBox. Is it possible? Thanks ...more >>

Customizing pager/header/footer
Posted by Tumurbaatar S. at 11/4/2005 12:00:00 AM
I need to put web controls inside pager, header or footer parts of the datagrid. Any ideas? ...more >>

Checkbox value in datagrid does not reflect appearance
Posted by PaulNaude at 11/3/2005 2:27:03 AM
I have a datagrid with boolean columns and as a test I display the value of the checkbox in a label (not bound) as the user clicks in the grid cell. Depending on the value of the checkbox as set by the user, my code should go different routes. My problem is that the value of that particular ...more >>

DataGrid Edit TextBox
Posted by Aidal at 11/3/2005 12:00:00 AM
Hi NG. I'm having trouble controling the size of the textboxes that appear when the user clicks the "edit" button for a row in my datagrid. I know it can be done and I know it doesn't require much, but I just can't seem to find out how to anyway. If anyone could help me out with this litt...more >>

datagrid : change the string formatting expression
Posted by Franck at 11/3/2005 12:00:00 AM
hello, i'm looking for code (C# preferably) in order to change programmatically in a datagrid the string formatting expression of one bound colum thank you ...more >>

output parameters not working in if return resultset
Posted by Charts at 11/2/2005 1:21:04 PM
I am calling a stored procedure in SQL Server to return resultset to fill a datagrid in ASP.NET (using C#). I also want to return error code in ether return value or output parameters for ASP.NET calling program. I execute the stored procedure and tried to get hold of either return value or ou...more >>


DevelopmentNow Blog