Click here to Skip to main content
15,920,503 members
Home / Discussions / C#
   

C#

 
GeneralRe: I dont know a thing about programming and I need HELP! Pin
Nikhil Dabas31-May-01 8:35
Nikhil Dabas31-May-01 8:35 
GeneralRe: I dont know a thing about programming and I need HELP! Pin
Gary1-Jun-01 17:00
Gary1-Jun-01 17:00 
GeneralRe: I dont know a thing about programming and I need HELP! Pin
Michael P Butler3-Jun-01 22:29
Michael P Butler3-Jun-01 22:29 
GeneralRe: I dont know a thing about programming and I need HELP! Pin
Dave Kreskowiak13-Jun-05 10:52
mveDave Kreskowiak13-Jun-05 10:52 
GeneralRe: I dont know a thing about programming and I need HELP! Pin
Goalie356-Sep-06 10:08
Goalie356-Sep-06 10:08 
GeneralC# Development in VS.NET Pin
23-May-01 5:17
suss23-May-01 5:17 
GeneralRe: C# Development in VS.NET Pin
Eric Gunnerson (msft)29-May-01 8:34
Eric Gunnerson (msft)29-May-01 8:34 
GeneralShow my dataset in a datagrid... Pin
22-May-01 1:18
suss22-May-01 1:18 
all by code.
I really hope some of you can help me, since I'm really stuck.
What I have done is that I've made a datalayer which returns a populated dataset and want to show it in my grid on my webform.

Using :

Debug.Write(dsActivity.XmlData.ToString());

I know that the dataset that is returned is populated.

What I do on the .cs class to the form is:

//Gets the data from the my datalayer.

dsActivity = obActivity.getActivities();

//To ensure that there is data in the dataset
Debug.Write(dsActivity.XmlData.ToString());

dgActivities.DataSource=
dsActivity.DefaultView;
dgActivities.DataBind();


/*
Below I've pasted the getActivities routine
*/

public DataSet getActivities()
{
dscActivity.SelectCommand = new System.Data.ADO.ADOCommand(null, null, System.Data.CommandType.StoredProcedure ,
true, null,System.Data.UpdateRowSource.None);

dscActivity.SelectCommand.CommandText=
"Rastafa_Activity_getActivities";
// The name of the Stored Procedure.

//maps tables and columns in a collection
dscActivity.TableMappings.All = new System.Data.Internal.DataTableMapping[1]
{ new System.Data.Internal.DataTableMapping ("Table", "Rastafa_Activity_getActivities")};



return bDBClass.DataSetExecuteStoredProcedure(dscActivity);
}

/*

Stian Fagereng

*/ Dead | X|
GeneralC# Project quote request Pin
21-May-01 4:53
suss21-May-01 4:53 
QuestionWhy do i must use C# instead of C++ in an ATL or COM development? Pin
17-May-01 1:54
suss17-May-01 1:54 
AnswerRe: Why do i must use C# instead of C++ in an ATL or COM development? Pin
21-May-01 0:07
suss21-May-01 0:07 
GeneralRe: Why do i must use C# instead of C++ in an ATL or COM development? Pin
29-May-01 11:50
suss29-May-01 11:50 
GeneralCaret position Pin
Sylvain Gross13-May-01 21:37
Sylvain Gross13-May-01 21:37 
GeneralRe: Caret position Pin
Dave Kreskowiak13-Jun-05 10:47
mveDave Kreskowiak13-Jun-05 10:47 
GeneralRegistrations open for 2nd Batch of C# and VB.NET Pin
8-May-01 3:21
suss8-May-01 3:21 
GeneralWarning! This is another F'ing AD. Pin
Dave Kreskowiak13-Jun-05 10:46
mveDave Kreskowiak13-Jun-05 10:46 
Generalhi - how do i iterate thru a table Pin
7-May-01 5:55
suss7-May-01 5:55 
GeneralCalendar Web Control Pin
1-May-01 19:55
suss1-May-01 19:55 
GeneralC# Applet Like Functionality Pin
25-Apr-01 5:50
suss25-Apr-01 5:50 
GeneralRe: C# Applet Like Functionality Pin
29-May-01 11:54
suss29-May-01 11:54 
GeneralRe: C# Applet Like Functionality Pin
Nikhil Dabas31-May-01 8:46
Nikhil Dabas31-May-01 8:46 
Generalcalling COM objects within .NET C# Pin
18-Apr-01 9:06
suss18-Apr-01 9:06 
GeneralSingleton objects in C# Pin
4-Apr-01 18:02
suss4-Apr-01 18:02 
GeneralRe: Singleton objects in C# Pin
6-Apr-01 5:32
suss6-Apr-01 5:32 
Generalertret Pin
28-Mar-01 23:52
suss28-Mar-01 23:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.