Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27180

problem at host my custom control in datagridview

$
0
0
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

Viewing all articles
Browse latest Browse all 27180

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>