471,337 Members | 934 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

PropertyGrid Select Value

I am currently able to change a PropertyGrid to select a particular GridItem
by iterating through the current selected GridItem parent.GridItem's

However, This selects and focuses on the Label of the GridItem - I want to
Select and focus on the value instead (even better would be to highlight
text if it is a text value)

Has anyone got any thoughts on how this can be done?

Aug 14 '08 #1
2 3681
Hello John,

did you try sending the TAB key after you select the property ?

SendKeys.Send("{tab}");

Best regards,

Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart FieldPackEditor.Net / DateTimePicker replacement (http://
www.visualhint.com/index.php/fieldpackeditor)
Home of Smart PropertyGrid for .Net and MFC (http://www.visualhint.com/
index.php/propertygrid)
Microsoft PropertyGrid Resource List - http://www.propertygridresourcelist.com
On Aug 13, 11:27*pm, "John Hewitt" <hewit...@optusnet.com.auwrote:
I am currently able to change a PropertyGrid to select a particular GridItem
by iterating through the current selected GridItem parent.GridItem's

However, This selects and focuses on the Label of the GridItem - I want to
Select and focus on the value instead (even better would be to highlight
text if it is a text value)

Has anyone got any thoughts on how this can be done?
Aug 14 '08 #2
worked a treat.

"VisualHint" <ca******@gmail.comwrote in message
news:5e**********************************@i76g2000 hsf.googlegroups.com...
Hello John,

did you try sending the TAB key after you select the property ?

SendKeys.Send("{tab}");

Best regards,

Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart FieldPackEditor.Net / DateTimePicker replacement (http://
www.visualhint.com/index.php/fieldpackeditor)
Home of Smart PropertyGrid for .Net and MFC (http://www.visualhint.com/
index.php/propertygrid)
Microsoft PropertyGrid Resource List -
http://www.propertygridresourcelist.com
On Aug 13, 11:27 pm, "John Hewitt" <hewit...@optusnet.com.auwrote:
>I am currently able to change a PropertyGrid to select a particular
GridItem
by iterating through the current selected GridItem parent.GridItem's

However, This selects and focuses on the Label of the GridItem - I want
to
Select and focus on the value instead (even better would be to highlight
text if it is a text value)

Has anyone got any thoughts on how this can be done?
Aug 14 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Frank Rizzo | last post: by
1 post views Thread by ANDRES BECERRA | last post: by
6 posts views Thread by Steve Teeples | last post: by
4 posts views Thread by phcmi | last post: by
3 posts views Thread by Redivivus | last post: by
reply views Thread by rosydwin | last post: by

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.