473,837 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to retrive property values from our own property window

How to retrive property values from our own property window
Nov 15 '05 #1
2 2014
Balamurukan,

You can use reflection. You can use the SelectedObject property to get
the object in the property grid. Once you have that, you can get the
currently selected property by using the SelectedGridIte m property. With
that, you get a GridItem instance which you can get the PropertyDescrip tor
instance which you can use to call the GetValue or SetValue methods (along
with the SelectedObject) , to get the value of the property.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Balamuruka n" <ba***********@ hotmail.com> wrote in message
news:A9******** *************** ***********@mic rosoft.com...
How to retrive property values from our own property window

Nov 15 '05 #2
Dear Nichol
Thanks for ur reply

Actually i'm involved in creating my own datagrid for our companies use
I placed datagrid in Windowscontrol library project for which i have to set collection of properties(Like Colname,Positio n,Coltype ie combobox or checkbox,dateti mepicker).After placing my usercontrol datagrid control in my windows form when i choose my usercontrol it would show our own property in properties window which would display browse button.after i click the browse button i need to show my oun collection editor which would contain 3 properties (like datagrid's columns Editor) Using add button we can enter ColumnName,Colt ype whether it is combobox or datetime picker,Column position where it to be positioned in datagrid
say for ex for column1 has EMPID,COMBOBOX,
for Column2 has EMPNAME, ,1-----we ignored the value for 2nd property because this column will act as datagridTexbox colum
3rd Column has the values Date,Datetimepi cker,
After setting the properties in my own editor for my control i want to retrieve the collection values in user contro
Which i don't know.I think u understand my proplem
now my collection has EmpId,Compbobox ,0 for column
EmpName,"",1 for column 2(we ignored the value for ColumnType property) for column
Date,Datetimepi cker,2 for 3rd colum

o
i don't know how to retrieve the values back in my usercontrol
colud u please help me
We are creating Datagrid user control which is going to be used for all our colleagues
Each & every person has different constraint
somebody wants to show 5 columns in datagrid which he wants to make 3rd column as ComboBox column &the another one wants to show 10 columns in the data grid likewise they differ
So i planned to create Myo uwn user control

So once i retrieve the values it would be easy to fillup the data grid

After i run my windows application which contains my Datagrid user control
the datagrid to be filled up with according to the values we typed in the collection editor

That's all Nichol

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1647
by: Tom Szabo | last post by:
Hi, In order to preserve some settings and avoid cookies I have thought of the following trick: I simply create an array as the property of the window: window.aList = new Array(); and add the values to be preserved for after refresh.
11
2273
by: Tom Szabo | last post by:
Hi, In order to preserve some settings and avoid cookies I have thought of the following trick: I simply create an array as the property of the window: window.aList = new Array(); and add the values to be preserved for after refresh.
3
1354
by: Meelis | last post by:
Hi Can one property have different types? For example, i need to property type to be dependend on second property. Pirvate MyValue as Object Private MyType as Integer Public Property PType() as Integer Get
11
4515
by: Maximus | last post by:
Hi all, Has anyone been able to reterive the gradient selection colors used in outlook 2003? Basically, I have a grid showing a list of records and my client wants the selected row to have the same selection gradient back color as Outlook 2003 has on its left pane. The selected pane in Outlook 2003 have a gradient orange color for blue color scheme in XP. This gradient color changes according to the color schemes of the windows XP. Can...
0
1320
by: mpar16 | last post by:
Hi i needed help me to retrieve properties of a control, i got a scenario to read all available properties and its current assigned values for different controls in project. i tried with reflector tool but it giving properties of classes. I am not sure how to get property and its value. right now i have open property window for each control (Properties window) and noting down from a-z properties and its values. could you help me...
4
3259
by: Bosconian | last post by:
I have created a form tool page that consists of several dropdowns which allows a user to drill down and select a desired document for viewing in an external window. I need to post the form data to the external window so the values can be used to retrieve the appropriate document. The function below will open the window and post the form data accordingly, but when defining the action property it changes the original form action property....
1
1618
by: --== Alain ==-- | last post by:
Hi, I've created a simple class "GridLines" having 3 properties (Prop1, Prop2, and Prop3). in my custom control, i've created a property based on this class "GridLines". To show the GridLines properties as my custom control subproperties, i used an expandable ExpandableObjectConverter class for my GridLineConverter.
2
1911
idsanjeev
by: idsanjeev | last post by:
hello how can retrive the input text after submit button pressed and report a error message. i wants to post topic and if any error message is occured then retrive the inputed text but it forget its <%@ Language=VBScript%> <%Option Explicit If Request.Cookies("userid") = "" Then Response.Redirect "login.asp" Else Dim R, page,vopenflg Dim vlaunchby,i,vcount
1
3384
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for image upload in database: -----------Upload.jsp---------------- <html> <head> <title>Account Details </title>
0
9843
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9682
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10570
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10626
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10273
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9402
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7806
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7001
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.