Click here to Skip to main content
15,915,082 members
Home / Discussions / C#
   

C#

 
AnswerRe: ClickOnce Pin
Ennis Ray Lynch, Jr.8-Sep-08 3:52
Ennis Ray Lynch, Jr.8-Sep-08 3:52 
QuestionAvoiding Scrolling at repainting Pin
softwarejaeger7-Sep-08 20:03
softwarejaeger7-Sep-08 20:03 
QuestionForwarding an email in C# Pin
Praveen Raghuvanshi7-Sep-08 18:48
professionalPraveen Raghuvanshi7-Sep-08 18:48 
AnswerRe: Forwarding an email in C# Pin
N a v a n e e t h7-Sep-08 19:07
N a v a n e e t h7-Sep-08 19:07 
QuestionRe: Forwarding an email in C# Pin
Praveen Raghuvanshi8-Sep-08 1:10
professionalPraveen Raghuvanshi8-Sep-08 1:10 
QuestionExpand/collapsable data grid view for .NET 2.0 Pin
vankayalapati7-Sep-08 18:25
vankayalapati7-Sep-08 18:25 
AnswerRe: Expand/collapsable data grid view for .NET 2.0 Pin
Manas Bhardwaj9-Sep-08 5:33
professionalManas Bhardwaj9-Sep-08 5:33 
GeneralRe: Expand/collapsable data grid view for .NET 2.0 Pin
vankayalapati9-Sep-08 17:11
vankayalapati9-Sep-08 17:11 
This is the code i have written to display class/method details in separate grid views.

private void dllPathTextBox_TextChanged(object sender, EventArgs e)
{
int id = 1;
DataSet dataSet = new DataSet();
classesSummaryTable = new DataTable("ClassesSummary");
classesSummaryTable.Columns.Add("ID", typeof(int));
classesSummaryTable.Columns.Add("TypeName", typeof(Type));
classesSummaryTable.Columns.Add("Summary", typeof(string));
methodsSummaryTable = new DataTable("MethodsSummary");
methodsSummaryTable.Columns.Add("ID", typeof(int));
methodsSummaryTable.Columns.Add("MethodName", typeof(string));
methodsSummaryTable.Columns.Add("Summary", typeof(string));
Assembly asm = Assembly.LoadFrom(this.dllPathTextBox.Text);
Type[] classes = asm.GetTypes();
foreach (Type type in classes)
{
DataRow classSummaryRow = classesSummaryTable.NewRow();
classSummaryRow["ID"] = id;
classSummaryRow["TypeName"] = type;
string comment = new XmlComments(type).Summary.InnerText;
if (comment == "")
classSummaryRow["Summary"] = "No Summary For This";
else
classSummaryRow["Summary"] = comment;
classesSummaryTable.Rows.Add(classSummaryRow);
MethodInfo[] mi = type.GetMethods(BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic);
foreach (MethodInfo methodInfo in mi)
{
DataRow methodsSummaryRow = methodsSummaryTable.NewRow();
methodsSummaryRow["ID"] = id;
methodsSummaryRow["MethodName"] = methodInfo.ToString();
string comment1 = new XmlComments(methodInfo).Summary.InnerText;
if (comment1 == "")
{
methodsSummaryRow["Summary"] = "No Summary For This";
}
else
{
methodsSummaryRow["Summary"] = comment1;
}
methodsSummaryTable.Rows.Add(methodsSummaryRow);
}
id++;
}
dataSet.Tables.Add(classesSummaryTable);
dataSet.Tables.Add(methodsSummaryTable);
DataRelation relation = new DataRelation("MethodsOfCLass",
dataSet.Tables["ClassesSummary"].Columns["ID"],
dataSet.Tables["MethodsSummary"].Columns["ID"]);
dataSet.Relations.Add(relation);
classesSummaryBindingSource.DataSource = dataSet;
classesSummaryBindingSource.DataMember = "ClassesSummary";
methodsSummaryBindingSource.DataSource = classesSummaryBindingSource;
methodsSummaryBindingSource.DataMember = "MethodsOfCLass";
}
I am binding that two binding source objects to two separate grid views to display in different gridviews.

This is the code i have written to display class/methods details in separate grid views.But i need to display in only one gridview.First i need to display only classes information.when user selects any particular class row then grid should be expanded and should display method information in the same gridview as separate rows.when user again selects the same class row gridview should be collapsed.

thanks for your response
QuestionDirectInput with mouse help Pin
Fudge Mutator7-Sep-08 17:49
Fudge Mutator7-Sep-08 17:49 
QuestionManagementclass Pin
Mycroft Holmes7-Sep-08 17:19
professionalMycroft Holmes7-Sep-08 17:19 
AnswerRe: Managementclass Pin
N a v a n e e t h7-Sep-08 18:29
N a v a n e e t h7-Sep-08 18:29 
AnswerRe: Managementclass - idiot Pin
Mycroft Holmes7-Sep-08 20:51
professionalMycroft Holmes7-Sep-08 20:51 
Questionreflection method Pin
George_George7-Sep-08 17:04
George_George7-Sep-08 17:04 
Questionusing reflection to invoke a method Pin
George_George7-Sep-08 16:16
George_George7-Sep-08 16:16 
AnswerRe: using reflection to invoke a method Pin
PIEBALDconsult7-Sep-08 16:36
mvePIEBALDconsult7-Sep-08 16:36 
GeneralRe: using reflection to invoke a method Pin
George_George7-Sep-08 16:50
George_George7-Sep-08 16:50 
AnswerRe: using reflection to invoke a method Pin
N a v a n e e t h7-Sep-08 18:23
N a v a n e e t h7-Sep-08 18:23 
GeneralRe: using reflection to invoke a method Pin
George_George7-Sep-08 18:31
George_George7-Sep-08 18:31 
GeneralRe: using reflection to invoke a method Pin
N a v a n e e t h7-Sep-08 18:41
N a v a n e e t h7-Sep-08 18:41 
GeneralRe: using reflection to invoke a method Pin
George_George7-Sep-08 18:47
George_George7-Sep-08 18:47 
GeneralRe: using reflection to invoke a method Pin
N a v a n e e t h7-Sep-08 19:03
N a v a n e e t h7-Sep-08 19:03 
GeneralRe: using reflection to invoke a method Pin
George_George7-Sep-08 20:57
George_George7-Sep-08 20:57 
GeneralRe: using reflection to invoke a method Pin
George_George10-Sep-08 0:23
George_George10-Sep-08 0:23 
QuestionHow Pin
Silvyster7-Sep-08 15:07
Silvyster7-Sep-08 15:07 
AnswerRe: How Pin
Anthony Mushrow7-Sep-08 23:00
professionalAnthony Mushrow7-Sep-08 23:00 

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.