UserControl
-
Hi all, I am building a usercontrol .. When the user dragdrop the user control in the webform, i want to list the gridviewnames in a property of that user controll How can I ? Thanks in Advance Dana
-
Hi all, I am building a usercontrol .. When the user dragdrop the user control in the webform, i want to list the gridviewnames in a property of that user controll How can I ? Thanks in Advance Dana
Just write a public property which exposes the required data. Property viewer will show it when you select that control.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Hi all, I am building a usercontrol .. When the user dragdrop the user control in the webform, i want to list the gridviewnames in a property of that user controll How can I ? Thanks in Advance Dana
dofa
-
Just write a public property which exposes the required data. Property viewer will show it when you select that control.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
Thanks for the reply N a v a n e e t h If add a single value it displays the value How can I add a values like DropdownList ?
-
Thanks for the reply N a v a n e e t h If add a single value it displays the value How can I add a values like DropdownList ?
danasegaranea wrote:
How can I add a values like DropdownList ?
I didn't get that. Do you want to display a dropdown list in the property grid ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
danasegaranea wrote:
How can I add a values like DropdownList ?
I didn't get that. Do you want to display a dropdown list in the property grid ?
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
Yes Yes
-
Yes Yes
Use a
enum
as your property signature. I believe dropdown will be displayed on the property grid then.public enum Sample
{
First,
Second,
Third
}public Sample YourPropertyName
{
get; set;
}All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Use a
enum
as your property signature. I believe dropdown will be displayed on the property grid then.public enum Sample
{
First,
Second,
Third
}public Sample YourPropertyName
{
get; set;
}All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
That works well Now I am trying to add the form gridview controls name inside the Enum ... May be a diffcult task ?
-
That works well Now I am trying to add the form gridview controls name inside the Enum ... May be a diffcult task ?
danasegaranea wrote:
Now I am trying to add the form gridview controls name inside the Enum
It is done in other way. Check this[^]. In that article, I have shown how to edit collections through property editor. You can check and implement something similar.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions