Hi,
I am developing an addin for visual studio 2005-using C#.
I have developed a tool window where i need to display the output of a function in the datagrid of the toolwindow.
The output is the List content which needs to be displayed.
First i have developed a class:
class line_num_keywords
{
public int line_number;
public string captured_word;
public line_num_keywords(int l_no,string c_key)
{
this.line_number = l_no;
this.captured_word = c_key;
}
Where this class stores the line number and words in a list:
List<line_num_keywords> data_holder = new List<line_num_keywords>();
.
.
.
.
data_holder.Add(new line_num_keywords(e.Line,input_array[keyword_number]));
This List created- has to bedisplayed in the datagrid.
how can i achieve this? please can any one help me with the code?
The list has to be displayed when the toolWindow is loaded.
Thanks,
Nayana