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 2004

Filter by week: 1 2 3 4 5

Display multiple fields in a drop down list in datagrid
Posted by et at 11/30/2004 8:52:30 PM
How would I display the value of multiple fields in a drop down list in a bound datagrid. I tried changing the DataTextField to include both fields, but received an error: ddl.DataTextField = "CountyName" & "CountyCode" to display something like this: "Burrough County (BC)" This is my curren...more >>


Datagrid & checkbox column
Posted by et at 11/30/2004 2:08:13 PM
All the articles on checkboxes in a datagrid revolve around using the checkboxes for user selection. I need to have a checkbox inserted and its value based on a the dataset the grid is bound to. How do I retrieve that value? This is my datagrid: <asp:datagrid id=dg runat="server" AutoG...more >>

ButtonColumn info
Posted by Steph at 11/30/2004 12:00:56 PM
Hello, I have a datagrid dgGrid and want add column depending of a context. I am usin this following code : .... while (Clcpt<7) { ButtonColumn myCol = new ButtonColumn(); myCol.HeaderText = Clcpt.ToString(); myCol.ButtonType = ButtonColumnType.LinkButton; myCol.Text = "<img src='image...more >>

How to change header captions
Posted by Moshe Pack at 11/30/2004 2:25:01 AM
How can I change header captions when working with a bound DataGrid in ASP.Net? I am looking for a way to do this without involving the SQL. Thank you....more >>

JavaScript Onclick firing a button (C#)
Posted by Jer at 11/28/2004 11:27:44 PM
Has anybody ever used JavaScript to fire a button? I want a user to be able to click anywhere in a row to be able to make a selection. I use mouseovers and mouseouts to highlight the selected row. Currently the only way I know how to allow a user to click anywhere on a row is to register a Jav...more >>

How to connect Access database .mdb under windows XP
Posted by cschang at 11/27/2004 10:45:18 PM
I used the Data Form wizard of .NET to create a C# dataset form to query the data from an Access database file "MWIND.MDB", but I kept getting following message when I run the web form on XP only "The Microsoft Jet database engine cannot open the file 'C:\mydb\NWIND.MDB'. It is already opened...more >>

Conditional formating
Posted by Willem at 11/27/2004 1:17:10 AM
Hi, I'm working with a datagrid whithout any problem. But now I like to use some condinional formating to one of the columns. If the value in column 3 > 10 then change the back color to red instead of green. Is there a way to do this. Thanks, Willem...more >>

Boolean column in a data grid
Posted by Gerhard Ankerl at 11/24/2004 8:57:30 PM
My data grid constains several boolean columns, it is connected to a dataset. Can anyone tell me why i have to click the bool columns (init value is false ) 2 times before it changes to true? It seems to me that the first click only selects the row and the second click changes the value!! ...more >>



How can I save the style of a datagrid so that it appears on the automatic format to use iin another datagrid?
Posted by Luis Esteban Valencia at 11/24/2004 1:09:40 PM
How can I save the style of a datagrid so that it appears on the automatic format to use iin another datagrid? ...more >>

Variable DataGrid Column Text
Posted by Alan Z. Scharf at 11/23/2004 1:27:35 PM
1. Is there a way to make datagrid column text fill in from an expression? 2. I want column header text based on a lookup value from a UDF. Thanks. Alan ...more >>

Populate Datagrid from Client side
Posted by vijay_kerji NO[at]SPAM yahoo.com at 11/23/2004 2:34:16 AM
Hi All, I have a parent page. It will pop up a modal dialog (by calling show modal dialog) window. Dialog window will return a long string which will be parsed at the client side(say as first and last names). Now I need to populate the datagrid with these string data. Is it possible and if it...more >>

DataGrid OnPageIndexChanged does not fire for first page link click
Posted by sytelus NO[at]SPAM yahoo.com at 11/22/2004 2:29:54 PM
When DataGrid with paging enabled shows numeric links for pages, you get OnPageIndexChanged event fired when user clicks on any of the page links - except the very first! Have anyone seen this behavior and know any workarounds? The current workaround I know of is to look at IsPostBack and Reques...more >>

datagrid has a wrong position in netscape
Posted by orbi via DotNetMonster.com at 11/20/2004 4:52:16 PM
hello, i have a cross-browser problem. I'm using a common datagrid. the code is: <asp:datagrid id="mygrid" style="Z-INDEX: 108; LEFT: 175px; POSITION: absolute; TOP: 190px" ..... in IE the grid comes on the right position, in netscape - it doesn't. Can anybody help me solve this probl...more >>

Nested DataGrids
Posted by Vishal at 11/19/2004 2:18:15 PM
Hello, I have created a nested datagrid with the help of this article: http://www.standardio.org/article.aspx?id=155. Now I need to edit the nested datagrid. I thought that it was the same task as editing a single datagrid, but it doesnt seem so. I created a simple edit handler for my...more >>

Repeat Header??
Posted by eval at 11/18/2004 7:03:26 PM
Hi, Can I repeat the datagrid header every X rows??? Regards Eval...more >>

merging multiple datasets to bind to a grid
Posted by Rock at 11/18/2004 6:27:43 PM
How can I merge 2 datasets into one, then bind with the datagrid, or bind the datagrid to 2 datasets? For instance, I have one stored procedure that finds company name, address, etc., and another stored procedure that finds employees of that company and the employee information. Thanks. ...more >>

Problem Hiding Columns when Populating a Datagrid with a DataView of A DataTable From Dataset returned via an Asynchronous Web-Service
Posted by Bob Davies at 11/18/2004 4:46:21 PM
Hi I have a webservice that retrieves data from a database, this is then returned to the calling client application built in windows forms within a dataset, however upon attempting to create tablestyles to format any of the columns within the datagrid, the exception "Can-not parent objects ...more >>

Datagrid not displaying
Posted by Dave at 11/18/2004 11:33:40 AM
I'm tearing my hair out over this one. I have a newbie's grasp of data grids in vb.net, i.e. I have successfully taken working code, and made it work on my applications. I am unsuccessful at this one, however - I am trying to use a temporary table to load a grid. I do not get any errors runni...more >>

dataGrid_ItemDataBound - System.InvalidCastException
Posted by gn NO[at]SPAM dana.ucc.nau.edu at 11/17/2004 7:37:57 AM
Essentially I am trying to convert a particular column in my datagrid to an hyperlink on the fly - I have pasted the relevant code and error below, any advice would be appreciated, I have done several searches but found nothing that helps. Code: Private Sub dataNAV_ItemDataBound(ByVal s...more >>

Article: What is Isolated Storage ? (.Net FrameWork Tools Series)
Posted by Namratha Shah \(Nasha\) at 11/17/2004 6:10:33 AM
Hey Group, After a long week end I am back again. Its nice and refreshing after a short vacation so lets get started with .NET once again. Today we will discuss about Isolated Storage. This is one of the topics which I find interesting as I feel that it has a lot of practical usage or app...more >>

ItemCommand event not firing on ButtonColumn
Posted by Simon Rigby via .NET 247 at 11/17/2004 1:11:15 AM
Hi, I have a page with a user control on it to allow users to search= a database=2E When they click the search button, another user= control appears containing the search results=2E This control= contains a datagrid with the results in (amongst other things)=2E= I have added a buttoncolum...more >>

Retreive values from invisible cell
Posted by Patrice COTE via .NET 247 at 11/17/2004 1:00:56 AM
Hi ! I'm trying to update a table with an editable DataGrid (Edit,= Update, Cancel button)=2E In the Update event of the item, I can= retreive every value by using the TableCell object= (DataGridCommandEventArgs=2EItem)=2E The only value I can' retreive= is the one that I stored in an inv...more >>

Data Grid Disappears after postback
Posted by Hagai Amiel via .NET 247 at 11/17/2004 12:59:37 AM
Hello There I have created a fully programmatically datagrid each time I press any button, the datagrid disappears when it posts back how do I keep the grid on the screen without re-constructing it from scratch each time? I have tryed saving it on session variables without any success Followi...more >>

Read Boolean value from ASP.NET DataGrid Control
Posted by vijay_kerji NO[at]SPAM yahoo.com at 11/16/2004 1:40:04 AM
Hello, How to read Boolean value from web form datagrid control? I have template column with Radio button control in it. I would like to read the boolean value of the radio buttons which are placed on the data grid control? (Windows form Datagrid control allows indexing, G[][], unlike wed for...more >>

UpdateCommand not updating - weird behaviour of FindControl
Posted by Manuel Vázquez Acosta at 11/16/2004 1:19:48 AM
Hi all: I'm using a DataGrid to modify some data I recollect from 3 different tables (using an SQL Server view). However, when I try to get the updated values from the TextBoxes in the UpdateCommand event of the data grid, all I got is the unchanged values. So, although the SP called to upd...more >>

combo box in DataGrid
Posted by ALI-R at 11/15/2004 10:46:01 AM
I have been looking for adding a combobox to a datagrid,I have searched the net but most of examples are too much more than I want or not working properly . Can someone introduce me a simple refernece to do so?? Thanks in advance ALI ...more >>

Tooltip on Hyperlink column?
Posted by Michael Reinhart at 11/15/2004 6:29:58 AM
I've got a hyperlink column in a datagrid that looks like this: <asp:HyperLinkColumn Text="&lt;img src=images/magglass.gif border=0&gt;" Target="_top" DataNavigateUrlField="SubjectName" DataNavigateUrlFormatString="ViewCase.aspx?SubjectName={0}"></asp:HyperLinkColumn> Is there a way that I...more >>

Handling Events Of DataGrid Template Item Controls - UNANSWERED
Posted by Scott M. at 11/14/2004 10:32:14 PM
If I place a checkbox control into a template column of a DataGrid, how do I gain access to the CheckChanged event handler procedure that corresponds to that control? Thanks. ...more >>

setting focus to datagrid subcontrol
Posted by Bonj at 11/13/2004 3:30:52 PM
Hi I've got an ASP.NET datagrid control, and in the footer, there is a series of controls for typing in new values to add an item. e.g. <asp:DataGrid runat="Server".... > <Columns> ... <asp:TemplateColumn HeaderText="Name"> ... <FooterTemplate> <asp:TextBox ID="txtNameAdd"...more >>

new datagrid's problem
Posted by a developer at 11/13/2004 12:04:01 AM
my table has total 3 columns like emp_id(primay key),emp_name emp_address i m populating my datagrid at run time successfully . now i add functionality of hotmail model(checkboxex) in it successfully but for this i did enhanced simple datagrid's functionality and add one template column and pl...more >>

Events of DataGrid child controls
Posted by Scott M. at 11/12/2004 7:14:24 PM
How do you access the event handlers for controls in Template columns of a DataGrid? ...more >>

hardware arquitecture ASP.NET
Posted by smoncayo NO[at]SPAM gmail.com at 11/12/2004 5:19:21 PM
I have a question about hardware arquitecture for using in asp.net. I dont know what kind of minimum requirements I need for using an application client - server with ASP.NET , SQL SERVER and CRYSTAL REPORTS. Do you have some documentation? Thanks a lot!!!!...more >>

No html source for datagrid
Posted by John Dalberg at 11/12/2004 10:34:19 AM
I posted this earlier but this time I am adding a url if you want to see the datagrid. (Use start date of 11/10/2004). Basically I wanted to know why IE doesn't show the html table in the source view for the datagrid while all non-IE browsers show it? http://www.jamsportland.com/ratesadmin/r...more >>

Background Image
Posted by Rod at 11/12/2004 8:35:42 AM
Hi! I would like to insert an Image as background of mydatagrid. The image will be inserted between rows as separator line. Could anyone help me, please ? Regards, Antonio Grasso ...more >>

TextBox and DropDown in a Datagrid ItemTemplate
Posted by mudasir.ahmed NO[at]SPAM gmail.com at 11/12/2004 7:52:46 AM
Hi All, I need help to solve this scenario. I have 2 columns on a datagrid. Column1 Header is NAME Column2 Header is VALUE. The VALUE column could be either a free TextBox or a DropDown with a bunch of values to be selected. How can I implement this on a Datagrid. For instance. NAME ...more >>

How can I databind to a DataGrid Column?
Posted by dominic NO[at]SPAM vitrasoft.com at 11/11/2004 7:22:34 PM
Why is there no databinding for the properties of a datagrid column? I have a scenario where the FooterText property of a column is the result of a function. How do I, or why can't I databind the value to the property? I know I can set it on the code page, but if there is a way to create a da...more >>

Do MSFT programmers hate Mozilla Firefox users? (Border problem).
Posted by Brian Binnerup at 11/11/2004 3:21:02 PM
Hi there. I ran into something funny (well sort of, it's not funny when trying to make a web application for more than one browser) ;-) When using the datagrid control I set the cellspacing, cellpadding and border to 0 in the asp:DataGrid tag, which also renders in the browser in Interne...more >>

DataGrid controls
Posted by Bonj at 11/11/2004 7:30:01 AM
When handling the datagrid's OnEditCommand handler, the DataGridCommandEventArgs has an Item property, which has a collection of controls. One of these contains three subcontrols, the middle one (id 1 of 0, 1 and 2) of these subcontrols is the control (textbox) that contains the value I want...more >>

Accessing Header DataGridItems?
Posted by GaryB at 11/10/2004 5:33:38 PM
The datagrid.items collection only appears to have data rows in it. for Instance... dim myItem ad dataGridItem myItem = myGrid.Items(0) returns the first data row of data. How can I access the Headertext and footer text? The docs say ... " A DataGridItem represents an item (row) in a ...more >>

Can't view datagrid html source in IE
Posted by John Dalberg at 11/10/2004 5:00:44 PM
I have a weird problem. I have a webpage that displays a datagrid with data but when I use IE to view the html representation, the source has no table source for the datagrid. I used Opera, Mozilla and Firefox and they showed the html source for the datagrid just fine. I thought IE might be corru...more >>

EditCommandColumn makes my textboxes too big
Posted by loichate NO[at]SPAM euskalnet.net at 11/10/2004 4:20:46 AM
Hi all, I've added an EditCommandColumn to my dinamically created Datagrid. All works pretty well, events fire in the correct way and so on. My problem is when I click the "Edit" link: All row is made editable for me, but the textboxes are enormous, too big. As a consequence of those strange ...more >>

C++ or VB? Thanks.
Posted by Miguel Dias Moura at 11/10/2004 12:51:18 AM
Hello, i am working in ASP.Net / VB web sites. However i need to take a decision so i can buy some books and start studing some subjects. For Web: C++.net or VB.net? For Aplications: C++ or VB? What are the positive and negative things about each one? What should i choose? I was look...more >>

Dyanamic Datagrid .
Posted by mano4c NO[at]SPAM yahoo.com at 11/9/2004 4:18:01 AM
Hi all, I have problem i asp.net . I have one asp.net page in that i have one ComboBox and Datagrid . In the ComboBox im dipalying the table names on selecting a table from the combo i want to fill the Datagrid.Then I would like to provide the Edit, Update, and Add feature for the grid for an...more >>

Problem in Asp.Net DataGrid
Posted by mano4c NO[at]SPAM yahoo.com at 11/8/2004 10:50:01 PM
Hello, I have problem i Asp.Net . I have one Asp.Net page in that i have one ComboBox and Datagrid . In the ComboBox im dipalying the table names on selecting a table from the combo i want to fill the Datagrid.Then I would like to provide the Edit, Update, and Add feature for the grid for any...more >>

datagrid, paging and editcommand colum
Posted by venkat_chellam NO[at]SPAM yahoo.com at 11/8/2004 2:43:36 PM
I have a datagrid in my page which has one editcommandcolumn with edit, update and cancel options. Paging is also enabled in my datagrid. When viewing data the paging works fine but when move to next page and then click edit link of the editcommand column for the 1st row,it doesn't make that ro...more >>

TemplateColumn for this? conditionally display icon?
Posted by djc at 11/6/2004 3:45:21 PM
I want to add a column to my datagrid that will display an icon depending on what value is in a certian field in the database. 1) which type of column to use? TemplateColumn? 2) I'm looking for the best performing way to do this... my database field's data will match the filename of the icon t...more >>

AutoGenerateColumns won't set to false
Posted by Chance Hopkins at 11/6/2004 10:12:10 AM
I have a really strange problem I have a project that has been working fine for years. I have a datagrid with one column. AutoGenerate Columns is set to false and it was working fine for years. All of the sudden, it shows all the columns. The grid will NOT stick to just one. I am abs...more >>

Paging
Posted by hoz at 11/5/2004 5:34:47 PM
Hi , I use a procedure to get list of all users and show them in a datagrid/datalist/etc.. with SqlDataReader . How can i list X item (lets say 50) on the first page , 2. 50 on second page and so on ...more >>

how to assign a css class to datagrid header that is a link?
Posted by djc at 11/5/2004 3:10:51 PM
I have a datagrid that has several sortable columns. So the headers become hyperlinks. I need to be able to assign a css class to just these hyperlinks? how can I do that? For example, right now I can just assign css styles to the A tag which does control them but that also controls ALL the othe...more >>

Value from ItemTemplate?
Posted by Vishal at 11/5/2004 5:21:11 AM
Hello, This should be simple question. I thought I could solve it by my own, but unfortunaly I am not able. I have a datagrid with several asp:TemplateColumn's. In that template I have the <ItemTemplate> and the <EditItemTemplate> template. Now I would like to retrieve the value of the...more >>


DevelopmentNow Blog