473,434 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

can't see datagrid when running vs.net project

I can't see my datagrid when I run it from my project in
VisualStudio.net, but when I work with it locally thru
http://localhost/myproject/mydgrid.aspx, it works fine.:

datagrid coding:

//////////////////////////////

<asp:datagrid id="dgboard" Showfooter="true" BorderColor="#e5ecf9"
runat="server" AutoGenerateColumns="false" Font-Name="verdana"
Font-Size="smaller">
<HeaderStyle BackColor="#000000" ForeColor="#FFFFFF"/>
<FooterStyle BackColor="#e5ecf9" ForeColor="#000000"/>
<AlternatingItemStyle BackColor="#C0C0C0" />
<Columns>
<asp:BoundColumn
DataField="SalesRep_ID"
HeaderText="Rep ID"
ReadOnly="true">
</asp:BoundColumn>

<asp:BoundColumn
DataField="Deal_ID"
HeaderText="Deal ID">
</asp:BoundColumn>

<asp:BoundColumn
DataField="BoardDate"
DataFormatString="{0:d}"
HeaderText="Deal Date">
</asp:BoundColumn>

<asp:BoundColumn
DataField="lname"
HeaderText="Rep Last Name">
</asp:BoundColumn>

<asp:BoundColumn
DataField="dollars"
DataFormatString="{0:C}"
HeaderText="Amount$"

</asp:BoundColumn>

</Columns>
</asp:datagrid>

//////////////////////////

CODEBEHIND :

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace SportsMgrProject
{
/// <summary>
/// Summary description for btresults1.
/// </summary>
public class btresults1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.HyperLink HyperLink1;
protected System.Web.UI.WebControls.HyperLink HyperLink2;
protected System.Web.UI.WebControls.DataGrid dgboard;
protected System.Web.UI.WebControls.HyperLink HyperLink3;
protected System.Web.UI.WebControls.HyperLink HyperLink4;

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion
}
}
/////////////////////////

Thanks
Chumley

Nov 17 '05 #1
0 1091

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Maria L. | last post by:
Hi, I need to export the content of a DataGrid (in Windows application in C#), into an Excel spreadsheet. Anyone knows how to do this? Any code snippets would help! thanks a lot, Maria
3
by: PeterZ | last post by:
Hi, In a running C# app with a datagrid control I select all rows in the dataGrid using CTRL-A, I then paste into some other app like notepad or Word but the column headings get left off. Is...
1
by: freddy | last post by:
I have a class for DatabaseManager.cs that has all the connection path, add, update, delete.I have a problem with the datagrid because I have a form that contains the datagrid called...
1
by: MERAL GUVEN | last post by:
Hi, I have put a datagrid on a aspx page named "PriceCheck". I have added an templatecolumn and put a label to hat column. The code as the custom binding expression of this labels text property is...
0
by: Becker | last post by:
I have a datatable that I use to display running processes. These running processes are spawned as different threads. I use the readerwriterlock class to ensure that when I write to the datatable,...
0
by: Wyatt70 | last post by:
I'm attempting to implement a javascript popup calendar in a DataGrid. The calendar will be used to insert a date into a textbox. I keep getting a "System.NullReferenceException: Object reference...
1
by: glenn | last post by:
Hi folks, I need to have two ddl's in one DataGrid cell. The first ddl has a list of company names and the second has a list of contact names that work in the company name that was selected in...
8
by: wk6pack | last post by:
Hi, I have a datagrid that is populated from a query in SQL Server. The first time I run the form, it appears, I make changes or view it and it is fine. When I close the form and open it up...
3
by: David | last post by:
Hi all, This is a weird one. I have been asked to look at an intermittent fault. Basically, I have a webservice that is delivering info into a datagrid. Dim Statement As New...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.