Go to the Toolbox window in VS.NET. Assuming this a WinForm component, right
click on "Windows Forms" and select "Add/Remove Items..."
Click the "Browse..." button, and find the DLL with your grid (I'm assuming
it's in its own .DLL). Click "Open" and then go through the listbox and find
your component and make sure it's checked. Now it will be in the Window
Forms section of the Toolbox and you can simply drag it to your form.
Optionally, you can simply drag a regular DataGrid to your form and then go
in and change the data type in the code to your own DataGrid and go from
there.
Pete
"HKM" <hk****@yahoo.com> wrote in message
news:44**************************@posting.google.c om...
Hello !
I have extended DataGrid Control as per my requirements. My questions
is how to add this Custom Data Grid to the Form (that I want this
customized grid to appear). Following are the blocks of code.
public class CustomDataGrid : DataGrid
{
public CustomDataGrid()
{
// Customizations
}
public int CountSelectedColumn()
{
// sample customized method.
}
}
Now the form that im trying to use the above mentioned CustomDataGrid
control is a seperate class. I dont understand how to add this
CustomDataGrid component visually (drag n drop or if there is any
other way) to the form so that it can render my data.
Thanks in advance,
-HKM