Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > PropertyGrid-Need HELP

Reply
Thread Tools

PropertyGrid-Need HELP

 
 
=?Utf-8?B?RGVlcGFr?=
Guest
Posts: n/a
 
      07-14-2005
Im new to PropertyGrid .
I dont know how to set the property of the object that is changed in the
property grid . All that my form has relative to propertygrid is :

propertygrid.SelectedObject=first; //object

private void propertygrid_PropertyValueChanged(object s,
System.Windows.Forms.PropertyValueChangedEventArgs e)
{
MessageBox.Show( propertygrid.SelectedGridItem.ToString());
/*My intension is first.
propertygrid.SelectedGridItem.ToString()=propertyg rid.SelectedGridItem.ToString());*/
/*I know "first" is an object and this is not possible directly . */
}


If i can get a simple code to do this at this moment it would be very useful.
Thanks in advance .
--
deepak
 
Reply With Quote
 
 
 
 
TOM
Guest
Posts: n/a
 
      07-14-2005
Check The Code Project. They've had several good C# articles using the
Property Grid.

http://www.codeproject.com search for propertygrid in articles

A specific one that may be helpful:

http://www.codeproject.com/csharp/PropertyGrid.asp

I'm not sure of the syntax in C#, but in C++ you label the properties with
the
[ attributes ] descriptions.

-- Tom






"Deepak" <> wrote in message
news:0A7A9090-FE70-401D-BAD9-...
> Im new to PropertyGrid .
> I dont know how to set the property of the object that is changed in the
> property grid . All that my form has relative to propertygrid is :
>
> propertygrid.SelectedObject=first; //object
>
> private void propertygrid_PropertyValueChanged(object s,
> System.Windows.Forms.PropertyValueChangedEventArgs e)
> {
> MessageBox.Show( propertygrid.SelectedGridItem.ToString());
> /*My intension is first.
> propertygrid.SelectedGridItem.ToString()=propertyg rid.SelectedGridItem.ToString());*/
> /*I know "first" is an object and this is not possible directly . */
> }
>
>
> If i can get a simple code to do this at this moment it would be very
> useful.
> Thanks in advance .
> --
> deepak



 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGVlcGFr?=
Guest
Posts: n/a
 
      07-15-2005
I think i wasnt quite clear the last time . Maybe i need to rephrase my
problem.
The one in the codeproject is the same what i am doing . I just checked it .
It also has
propertyGrid1.SelectedObject = textBox1;
Instead of testBox1 i have my object called "first".
This object has certain properties like A,B & C.
I can see it and i can change it in the property grid.
But I need to SAVE it .Thats inside the object "first".
Inorder to do that im able to get the name of the property what the
user selects i.e., A or B or C. using SelectedGridItem.
--
deepak


"TOM" wrote:

> Check The Code Project. They've had several good C# articles using the
> Property Grid.
>
> http://www.codeproject.com search for propertygrid in articles
>
> A specific one that may be helpful:
>
> http://www.codeproject.com/csharp/PropertyGrid.asp
>
> I'm not sure of the syntax in C#, but in C++ you label the properties with
> the
> [ attributes ] descriptions.
>
> -- Tom
>
>
>
>
>
>
> "Deepak" <> wrote in message
> news:0A7A9090-FE70-401D-BAD9-...
> > Im new to PropertyGrid .
> > I dont know how to set the property of the object that is changed in the
> > property grid . All that my form has relative to propertygrid is :
> >
> > propertygrid.SelectedObject=first; //object
> >
> > private void propertygrid_PropertyValueChanged(object s,
> > System.Windows.Forms.PropertyValueChangedEventArgs e)
> > {
> > MessageBox.Show( propertygrid.SelectedGridItem.ToString());
> > /*My intension is first.
> > propertygrid.SelectedGridItem.ToString()=propertyg rid.SelectedGridItem.ToString());*/
> > /*I know "first" is an object and this is not possible directly . */
> > }
> >
> >
> > If i can get a simple code to do this at this moment it would be very
> > useful.
> > Thanks in advance .
> > --
> > deepak

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
HELP - HELP - HELP =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?= ASP .Net 4 03-09-2006 12:46 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 1 07-16-2004 01:12 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 0 07-16-2004 10:00 AM
HELP! HELP! HELP! Opening Web Application Project Error =?Utf-8?B?dHJlbGxvdzQyMg==?= ASP .Net 0 02-20-2004 05:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57