Results 1 to 23 of 23

Thread: problem at host my custom control in datagridview

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    97

    problem at host my custom control in datagridview

    hi
    I crate a textbox control by Additional property as:

    InputType as inputs , inputs is enum :
    Public Enum Inputs
    Standard = 0 (user can enter anything)
    Numbers = 1 (only number)
    Alphabets = 2
    NumberAndAlphabet = 3
    Decimals = 4 (only decimal by 3 decimal place)
    NationalCode = 5 (my special country code for each person )
    End Enum

    Separator (if set to true , digit can be grouping)

    And some other properties


    this control(SHTextBox) Working properly , when I finish another component based on shtextbox (SHtextBoxDataGridViewColumn) based on following link information :

    Code:
    http://www.vb-tips.com/dbpages.aspx?ID=43d85ac7-1715-47fd-9e1f-dd17b41ace9a
    but when add my column to datagridview , I can not change the value of inputtype property.
    I read following article and see the note :

    Code:
    http://msdn.microsoft.com/en-us/library/7tas5c80(v=vs.110).aspx
    Must I override the Clone method ? if yes how I do it ?

    I'm confused about host my control in datagridview and did not know what is the correct way

    I attach my project here , Please check the code and solve my problem.

    tank you
    Attached Files Attached Files
    Last edited by sh-a; May 6th, 2013 at 10:44 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width