Click here to Skip to main content
15,923,051 members
Home / Discussions / C#
   

C#

 
AnswerRe: Exporting functions from C# .dll for other programs Pin
Christian Graus27-Apr-09 9:50
protectorChristian Graus27-Apr-09 9:50 
GeneralRe: Exporting functions from C# .dll for other programs Pin
Member 103390727-Apr-09 11:27
Member 103390727-Apr-09 11:27 
GeneralRe: Exporting functions from C# .dll for other programs Pin
Dave Kreskowiak27-Apr-09 18:37
mveDave Kreskowiak27-Apr-09 18:37 
GeneralRe: Exporting functions from C# .dll for other programs Pin
Member 103390727-Apr-09 21:05
Member 103390727-Apr-09 21:05 
GeneralRe: Exporting functions from C# .dll for other programs Pin
Dave Kreskowiak28-Apr-09 12:18
mveDave Kreskowiak28-Apr-09 12:18 
AnswerRe: Exporting functions from C# .dll for other programs Pin
Dave Kreskowiak27-Apr-09 11:19
mveDave Kreskowiak27-Apr-09 11:19 
GeneralRe: Exporting functions from C# .dll for other programs Pin
Member 103390727-Apr-09 11:37
Member 103390727-Apr-09 11:37 
Questionhow can i change font to hindi in textbox?? Pin
Alok Sharma ji27-Apr-09 9:15
Alok Sharma ji27-Apr-09 9:15 
AnswerRe: how can i change font to hindi in textbox?? Pin
Saksida Bojan27-Apr-09 9:22
Saksida Bojan27-Apr-09 9:22 
GeneralRe: how can i change font to hindi in textbox?? Pin
Alok Sharma ji27-Apr-09 9:28
Alok Sharma ji27-Apr-09 9:28 
GeneralRe: how can i change font to hindi in textbox?? Pin
Saksida Bojan27-Apr-09 9:31
Saksida Bojan27-Apr-09 9:31 
GeneralRe: how can i change font to hindi in textbox?? Pin
Alok Sharma ji27-Apr-09 9:33
Alok Sharma ji27-Apr-09 9:33 
GeneralRe: how can i change font to hindi in textbox?? Pin
Saksida Bojan27-Apr-09 9:52
Saksida Bojan27-Apr-09 9:52 
GeneralRe: how can i change font to hindi in textbox?? Pin
Alok Sharma ji27-Apr-09 9:56
Alok Sharma ji27-Apr-09 9:56 
QuestionAmazon Web Services Pin
Kevin Marois27-Apr-09 8:31
professionalKevin Marois27-Apr-09 8:31 
AnswerRe: Amazon Web Services Pin
led mike27-Apr-09 9:00
led mike27-Apr-09 9:00 
GeneralRe: Amazon Web Services Pin
Kevin Marois27-Apr-09 9:07
professionalKevin Marois27-Apr-09 9:07 
AnswerRe: Amazon Web Services Pin
agent00zelda27-Apr-09 9:09
agent00zelda27-Apr-09 9:09 
GeneralRe: Amazon Web Services Pin
Kevin Marois27-Apr-09 9:32
professionalKevin Marois27-Apr-09 9:32 
GeneralRe: Amazon Web Services Pin
led mike27-Apr-09 9:43
led mike27-Apr-09 9:43 
GeneralRe: Amazon Web Services Pin
Kevin Marois27-Apr-09 9:49
professionalKevin Marois27-Apr-09 9:49 
GeneralRe: Amazon Web Services Pin
led mike27-Apr-09 9:52
led mike27-Apr-09 9:52 
AnswerRe: Amazon Web Services Pin
0x3c027-Apr-09 9:39
0x3c027-Apr-09 9:39 
GeneralRe: Amazon Web Services Pin
Kevin Marois27-Apr-09 9:40
professionalKevin Marois27-Apr-09 9:40 
QuestionDataGridView,DataBind() Pin
Idoshhh27-Apr-09 8:23
Idoshhh27-Apr-09 8:23 
Hello,
I'm using VS2008 (C#).

i built a desktop application that doing few type of query's and save the results to CSV file.

now, i want also to see the result in the DataGridView.
i understand the logic, and i understand that i have to use in my code something like the follow lines: (i cant see the "DataBind" Method!!)

<pre>
public void ExecuteFromBox(string ExecuteFromFile,string timeNow)
{
string conStr = String.Format(@"UID=very_Funny;PWD=hahahahaha;InitialCatalog=hahahahahahaha;Data Source=hahahahahaha");
Form1 frmain = new Form1();
SqlConnection conn = new SqlConnection(conStr);
conn.Open();
SqlCommand cmd = new SqlCommand(@ExecuteFromFile, conn);
MessageBox.Show(cmd.CommandText);
DataSet ds = new DataSet();
//SqlDataAdapter ad = new SqlDataAdapter(cmd);
SqlDataReader reader = cmd.ExecuteReader();
frmain.DTResults.DataSource = reader;
<b>frmain.DTResults.DataBind();</b> // i cant find this Method!!!
conn.Close();
}
</pre>

is there any suggestion?? how can i add the DataBind Method?

Thank you Smile | :)

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.