List Info

Thread: C-Sharp (C#) Group: DataSet.Designer.cs Help Please




C-Sharp (C#) Group: DataSet.Designer.cs Help Please
user name
2006-06-08 21:24:36
I'm trying to figure out a way to pass this .cs file a
variable from
form so that I can build a custom query block.

Example of what this file contains that I want to modify.
this._commandCollection[0].CommandText =
"SELECT *
FROM *
WHERE *";
this._commandCollection[0].CommandType =
System.Data.CommandType.Text;

Example of what I wish to do.
this._commandCollection[0].CommandText =
"SELECT *
FROM *
WHERE " + myQueryString;
this._commandCollection[0].CommandType =
System.Data.CommandType.Text;

When you call this function from your form, its linked to a
name like
"fill" which is lower in the DataSet.Designer.cs
file.

You call it with something like the following. This is from
form.cs
this.tbAdapter.Fill(this.DataSet.tb);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

C-Sharp (C#) Group: Re: DataSet.Designer.cs Help Please
user name
2006-06-08 22:23:21
Or perhaps even better would be a way to filter what is
displayed on my
datagridview by a string. That easier?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharpgooglegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribegooglegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )