Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

hello all,

i have a class that inherits from DataGrid, to use my class i place on the form a usual datagrid, then go to the declaration and replace the datagrid declaration with my class's declaration.

the question is that how can i use my class as a control in the toolbox so that i supress the step of going into the code and changing the declaration. i know i can create a windows control project but this way i should create properties to expose the datagrid's properties to the outside

thanks alot

Posted
because then i should create properties to expose the datagrid's properties and objects to the client. as an example i need to create a property Datagridstyle to set the datagridstyle
Posted
i'm inheriting the datagrid in a class, i dont have any own properties, what i want to reach is a datagrid control customized for me (ex the usual datagrid contains only textboxcolumn, boolean column but doesnt contain combobox column,datetimepicker column etc.. my datagrid should contain such functionality)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...