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

C#

 
AnswerRe: adding a checkbox to a datagridview Pin
dan!sh 17-Aug-08 22:19
professional dan!sh 17-Aug-08 22:19 
AnswerRe: adding a checkbox to a datagridview Pin
Mogaambo17-Aug-08 22:20
Mogaambo17-Aug-08 22:20 
GeneralRe: adding a checkbox to a datagridview Pin
laziale17-Aug-08 22:27
laziale17-Aug-08 22:27 
GeneralRe: adding a checkbox to a datagridview Pin
Mogaambo17-Aug-08 22:34
Mogaambo17-Aug-08 22:34 
GeneralRe: adding a checkbox to a datagridview Pin
laziale17-Aug-08 22:39
laziale17-Aug-08 22:39 
QuestionString placeholder and html causing it to encode Pin
reverland17-Aug-08 20:56
reverland17-Aug-08 20:56 
AnswerRe: String placeholder and html causing it to encode Pin
Guffa17-Aug-08 21:00
Guffa17-Aug-08 21:00 
GeneralRe: String placeholder and html causing it to encode Pin
reverland18-Aug-08 6:17
reverland18-Aug-08 6:17 
GeneralRe: String placeholder and html causing it to encode Pin
Guffa18-Aug-08 6:50
Guffa18-Aug-08 6:50 
GeneralRe: String placeholder and html causing it to encode Pin
reverland18-Aug-08 7:02
reverland18-Aug-08 7:02 
GeneralRe: String placeholder and html causing it to encode Pin
Guffa18-Aug-08 10:45
Guffa18-Aug-08 10:45 
GeneralRe: String placeholder and html causing it to encode Pin
reverland18-Aug-08 10:53
reverland18-Aug-08 10:53 
Questionvisual c++ vs c# Pin
Mogaambo17-Aug-08 20:53
Mogaambo17-Aug-08 20:53 
AnswerRe: visual c++ vs c# Pin
Christian Graus17-Aug-08 21:56
protectorChristian Graus17-Aug-08 21:56 
GeneralRe: visual c++ vs c# Pin
Mogaambo17-Aug-08 22:06
Mogaambo17-Aug-08 22:06 
GeneralRe: visual c++ vs c# Pin
Manas Bhardwaj18-Aug-08 2:39
professionalManas Bhardwaj18-Aug-08 2:39 
QuestionBinding DataGridView Columns with DataTable Columns Pin
Piyush Vaishnav17-Aug-08 20:16
Piyush Vaishnav17-Aug-08 20:16 
QuestionParsing Nullable DateTime Pin
N a v a n e e t h17-Aug-08 19:48
N a v a n e e t h17-Aug-08 19:48 
AnswerRe: Parsing Nullable DateTime Pin
Guffa17-Aug-08 21:03
Guffa17-Aug-08 21:03 
GeneralRe: Parsing Nullable DateTime Pin
N a v a n e e t h17-Aug-08 21:05
N a v a n e e t h17-Aug-08 21:05 
GeneralRe: Parsing Nullable DateTime Pin
benjymous17-Aug-08 23:57
benjymous17-Aug-08 23:57 
GeneralRe: Parsing Nullable DateTime Pin
Guffa18-Aug-08 2:42
Guffa18-Aug-08 2:42 
QuestionRename xml file name in C# [Resolved] Pin
CodingLover17-Aug-08 18:24
CodingLover17-Aug-08 18:24 
AnswerRe: Rename xml file name in C# Pin
CodingLover17-Aug-08 19:00
CodingLover17-Aug-08 19:00 
QuestionC# CodeDom CodeMethodInvokeExpression Class Pin
AndieDu17-Aug-08 16:27
AndieDu17-Aug-08 16:27 
Dear All,

I want to generate the highlighted code in C# by CodeDom. Now I am able to generate all the codes except the method invoke parameter, which is this one: "IdentityNo"

foreach (CCCRM.PatientRow dr in ta.GetAccessHusbandAndWife(IdentityNo))
{

}


The code that i am using to generate the above c# codes are:

webMethodDeclaration.Statements.Add(new CodeSnippetStatement("foreach (" + module + "." + parameter_1
+ " dr in ta." + methodInfo.Name + "("));
// Parameter list for Table Adapter Method
for (int i = 0; i < methodInfo.GetParameters().Length; i++)
{
string str1 = methodInfo.GetParameters()[i].Name;
webMethodDeclaration.Statements.Add(new CodeSnippetStatement(str1));
}
webMethodDeclaration.Statements.Add(new CodeSnippetStatement("))"));

but apparently they are not right. i was trying to use CodeMehtodInvokeExpression class, but it generates different souce code.

I do appreciate your help and thanks in advance.

Andie Du

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.