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 > january 2007

How can I access a calendar control inside a detailsview control?
Posted by Tamer Ibrahim at 1/29/2007 2:59:19 AM
I want a sample code for such task. any help will be most appeciated. Tamer ...more >>


Changing color of a column in a datagrid.
Posted by UJ at 1/26/2007 7:46:55 AM
How can you change the background color for a single column in a datagrid. I can figure out how to do it for the entire row (e.item.backcolor = ....) but how do I do it for a single column? TIA - Jeff. ...more >>

Group By Rows and Total Rows
Posted by yonialhadeff at 1/23/2007 8:16:31 AM
Hello, I have a datagrid wich is fill in by a query that has a group by. I want to have a row for each element of the field that is in the group by lets have an example SELECT TOWN FROM AllTownInTheWorlds GROUP BY Country Town NbofHabitant Superficies BEL...more >>

Field not updating in gridview unless visible?
Posted by et at 1/22/2007 8:30:15 AM
In my gridview are the primary keys of the record that is being modified, and obviously I have them hidden. However, when I try to use the update, the id parameter -- or any field that is not visible -- does not come across and the update fails since it's based on that id. Not sure that quit...more >>

Why can't I get the FormView control's Paging controls to show?
Posted by Nathan Sokalski at 1/21/2007 4:45:49 PM
I have tried everything I can think of, I have even tried copying examples from books and websites I have found, but every Formview control that I have tried to create does not show the Paging controls. The first record from the DataSource is displayed, but not the Paging controls. I have trie...more >>

Load a DataGrid from code
Posted by Bruce A. Julseth at 1/19/2007 5:10:20 PM
I need to load a table with 3 to 9 columns and 1 to 10 rows. I assume the DataGrid is the best solutions. If not can someone suggest something else. Assuming it is the right solution, does someone have an example on how to do it. My "idea" is that I'll have to build a recordset (which I don't...more >>

Format Date in Databound column
Posted by Vaughn Haybittle at 1/18/2007 6:03:02 PM
Hi, I have a Gridview which is populated via a stored procedure. One of the coumns returned is a date. The date is currently displayed as 18/01/2007 00:00:00. I just want to show the date without the time i.e. 18/01/2007. I have tried adding a dataformatstring of {0:d} but it is not mak...more >>

filtering from multiple dropdownlists
Posted by DevCon7 NO[at]SPAM gmail.com at 1/18/2007 1:06:33 PM
I created a datagrid which populates data from sql server. There about 8 columns on the grid I need to be able to filter on. I did setup several dropdownlists and was sucessfully able to filter based on and "AND" crietia. ex. CITY = "SSDF" AND STATE ="OK" AND PHONE = "325-695-9656" AND ......more >>



grid32.ocx and max Rows
Posted by cg at 1/16/2007 2:15:24 PM
Hello, Under VB 6.0, I use the grid control from grid32.ocx (control that i need because of multi-line selection) and I've got a problem : I can't fill more than 16351 rows (my grid counts 15 cols). Do you know the way to bypass this limitation for at least 32000 rows. I've tried MSHFlexG...more >>

Gridview column formatting
Posted by et at 1/15/2007 1:11:59 PM
I have tried everything to display a bound column in a gridview to 2 decimals only. The column is a price, and when I run the query in sql, he value displays as 10.00. Yet in the grid view it displays as 10.0000. I have tried various settings in the dataformatstring, and it seems to ignore ...more >>

GridView Totals Row as First Row
Posted by Walt Zydhek at 1/15/2007 10:37:15 AM
I have seen a number of articles about adding a totals row to the GridView control. But I have only seen methods for displaying the totals row in the Footer. Is there a way to display the totals in the FIRST row of the GridView, along with a custom style for that row? Or how can a Header...more >>

GridView with Multiple value post
Posted by Ganesh at 1/14/2007 12:20:23 AM
Hi, I have a added a Gridview to a ASPX data bounded to a table. And I have a another text box have value, now I ant to post a a value from the Gridview and the txt box value. The gridview property windo allows only data bounded fileds to post. How can I do this. Ganesh...more >>

Programmatically modifying the controls in FormView's PagerTemplate
Posted by Nathan Sokalski at 1/13/2007 4:02:06 AM
I am trying to create a FormView controls in which I access and modify the the controls in the PagerTemplate programmatically. However, I continue to recieve the following error: Object reference not set to an instance of an object. I am attempting to access the controls in my PagerTemplat...more >>

Really simple question - making a dataset editable through a datagrid.
Posted by UJ at 1/12/2007 9:19:58 AM
Can somebody please point me towards an example of how to display a datagrid and make some of the items editable. It doesn't need to be complicated or even fancy; Just need to be able to insert/update/delete records from the dataset. TIA - Jeff. ...more >>

ASP 2.0 Gridview
Posted by RG at 1/11/2007 7:28:01 PM
I am using dataview as a datasource to a gridview. The column definitions of gridview are different that of db table. When binding, how do you specify column cross reference? Thanks in advance...more >>

Command Button to Open Window
Posted by Softworks at 1/11/2007 3:46:57 PM
I have a GridView that contains an command button in one of the columns. The code-behind does some processing of code and then needs to open a window. It looks like the postback fires before the PopUpWindow. Is there anyway around this? Private Sub dgJobs_CancelCommand(ByVal source A...more >>

updating a row in datagrid..
Posted by rcoco at 1/10/2007 11:18:52 PM
Hi everyone, I'm having with selecting a row in a datagrid. I have a datagrid that is ment to update and it runs very well, But I don't want the user to keep scrolling when ever they want to update so I created a textbox(txtname) and a button where a user is supposed to write a name and by the ...more >>

Datagrid Data loaded twice
Posted by brunogomes80 NO[at]SPAM gmail.com at 1/10/2007 10:36:20 AM
Hi, i am having a problem for severel days. I have i datagrid control inside an .ascx file. When i first load the page it works fine but when i change de page the data is loaded twice. I can not understand why. I will be gratefull if someone can help me. Bruno ...more >>

Invalid postback or callback argument error
Posted by Nathan Sokalski at 1/9/2007 3:51:29 AM
I have a DataList in which the ItemTemplate contains two Button controls that use EventBubbling. When I click either of them I receive the following error: Server Error in '/' Application. -------------------------------------------------------------------------------- Invalid postback or...more >>

Datagrid TemplateColumn
Posted by Jake K at 1/8/2007 4:32:18 PM
I have an ItemTemplate in a datagrid that must use a conditional statement. The templatecolumns is as follows: <asp:TemplateColumn HeaderText="Listen To File"> <ItemTemplate> <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="sound.gif" NavigateUrl='<%# DataBinder.Eval(Container, ...more >>

Datagrid Javascript Postback issue
Posted by John Doe at 1/8/2007 11:42:23 AM
I have multiple pages containing data. When I click on a different page, nothing happens, just sits there. It worked fine on my laptop and now when I move it to a server it does not work. Is there a setting that is preventing this to work? *** Sent via Developersdex http://www.develop...more >>

using template columns
Posted by Brett Wesoloski at 1/8/2007 9:45:38 AM
I am new to using template columns. I am just trying to create a data grid with a bound column and another column with a imagebutton in it. What I have always done in the past was to then create a datatable and bind that to the datagrid. Where is my code to bind the grid to the datatabl...more >>

I need some help
Posted by rcoco at 1/8/2007 1:45:58 AM
Hi, I have this Datagrid and it's very long It's actually ment to update. so I want to simplify the work for the users instead of scrolling manually, I made a button and textBox so that the user can insert the name and on the pressing a button it selects the row that is supposed to be edited....more >>

GridView And SqlDataSouce
Posted by rony at 1/3/2007 12:34:27 PM
Hi, I am trying to build GridView that will use the option of sorting and paging by allowing CallBack property in the GridView. The problem that i found that if i want to add columns in code behind, the callback option is disabled. the callback does work if i add the columns in the GridView ...more >>

Refreshing a DataList
Posted by Nathan Sokalski at 1/2/2007 11:21:29 PM
I have a DataList control that I want users to be able to sort the data in by clicking 1 of 3 buttons. The function I have created to do this is as follows: Private Sub SortPoems(ByVal sortby As String) Dim ratedpoems As New DataTable Dim sqltext As String = "SELECT * FROM poemrat...more >>


DevelopmentNow Blog