Hi, I have a datagrid view in which user can specify 1. Text 2. FontName 3. Font Style 4. Font Size
like for example
DataGridView
Text Column FontName FontStyle FontSize ----->Columns
Text1 combobox combobox combobox ---->Row1 Text2 combobox combobox combobox -------->Row2
Is this is best way for giving user an option to select the Font or we can reduce it into one column??? if yes then please suggest the best way for doing this.
I have tried addind a button in datagridview columns , if user click the button the user is prompted with a FontDialog in which user can select the font related properties. The problem is where can I display all those properties... On the button itself ??
Thanks, Ashish
| | Ashish.SAIC Wednesday, May 27, 2009 5:58 AM | Yes, there are many options to go for.
You can create a small form withas size of you desire for popup. You can have 4 TextBox(s) in the form for X, Y, Width &Height. And, a button like "OK".
When, Location (+) from your datagrid is clicked, you can open this popup form.
On the click of OK from the popup form, you can perform your desired action. Regards,
Lakra :)
- If the post is helpful or answers your question, please mark it as such.- Marked As Answer byAshish.SAIC Wednesday, May 27, 2009 8:00 AM
-
| | Abhijeet Lakra Wednesday, May 27, 2009 7:14 AM | Do you have ny issues in displaying the Font Info. in a column with TextBox? Something like:
Text Column FontDetail FontDialog ----->Columns
Text1Font Family: Arial, Font Size: 10 button ---->Row1 Text2 Font Family: Verdana, Font Size:8 button -------->Row2
Each time when font is chosen from the Font dialog box, you can update the TextBox in FontDetail column with the Font Info from the Font Dialog.
Regards,
Lakra :)
- If the post is helpful or answers your question, please mark it as such. - Marked As Answer byAshish.SAIC Wednesday, May 27, 2009 6:22 AM
- Unmarked As Answer byAshish.SAIC Wednesday, May 27, 2009 6:43 AM
-
| | Abhijeet Lakra Wednesday, May 27, 2009 6:15 AM | Thanks for the suggestionAbhijeet... This answers my question
| | Ashish.SAIC Wednesday, May 27, 2009 6:19 AM | Abhijeet,
I have to provide Four extra columns for Text Location. Is there is any way to open the subgrid which gives user an option to input the X, Y , Width , Height ?
Like for example
Text Column FontDetail FontDialog Location ----->Columns
Text1Font Family: Arial, Font Size: 10 button+ ---->Row1 Text2 Font Family: Verdana, Font Size:8 button+ - ------->Row2
User can click the + under the Location columns a sub grid will pop ups
X Y Width Height ----->Columns
Thanks Ashish
| | Ashish.SAIC Wednesday, May 27, 2009 6:42 AM | Yes, there are many options to go for.
You can create a small form withas size of you desire for popup. You can have 4 TextBox(s) in the form for X, Y, Width &Height. And, a button like "OK".
When, Location (+) from your datagrid is clicked, you can open this popup form.
On the click of OK from the popup form, you can perform your desired action. Regards,
Lakra :)
- If the post is helpful or answers your question, please mark it as such.- Marked As Answer byAshish.SAIC Wednesday, May 27, 2009 8:00 AM
-
| | Abhijeet Lakra Wednesday, May 27, 2009 7:14 AM | Yes that is the one way to acheive this .. But I want a expandable nested subgrid.. | | Ashish.SAIC Wednesday, May 27, 2009 7:20 AM |
|