TusharM
February 12th, 2003, 05:09 AM
Hi,All
I am writing Grid Like Control in C#.I am drawing the grid(Rectangles) on control.
i have written a class called CellInfo
class CellInfo
{
int x;
int y;
int width;
int height;
int Data;
Color BackColor;
}
which represents one cell(Rectangle) in the grid.
Now i have Arraylist Cells[Rows],which contains ArrayLists[Columns] of CellInfo objects.
Now i want user should be able to change some properties of CellInfo(e.g. data,BackColor)(one rectangle in Grid)at DesignTime.
Something like Items property in ListView.
How should i declare the property.
If i write the property which returns ArrayList containing CellInfo Objects,it does'nt understand CellInfo!
I hope u understand my Problem!
Thanks
Tushar.
I am writing Grid Like Control in C#.I am drawing the grid(Rectangles) on control.
i have written a class called CellInfo
class CellInfo
{
int x;
int y;
int width;
int height;
int Data;
Color BackColor;
}
which represents one cell(Rectangle) in the grid.
Now i have Arraylist Cells[Rows],which contains ArrayLists[Columns] of CellInfo objects.
Now i want user should be able to change some properties of CellInfo(e.g. data,BackColor)(one rectangle in Grid)at DesignTime.
Something like Items property in ListView.
How should i declare the property.
If i write the property which returns ArrayList containing CellInfo Objects,it does'nt understand CellInfo!
I hope u understand my Problem!
Thanks
Tushar.