Forum  Core :: SDK (Vi...  Using the Visua...  DataGridView Custom Controls
Previous Previous
 
Next Next
New Post 4/16/2009 4:03 AM
Informative
  x_Vanish
8 posts
No Ranking


DataGridView Custom Controls 

Is there any code sample for custom controls to use in a cell on DataGridView.

I need a custom control with a readonly disabled text box and a button near the textbox :). When i click on the button i want to open any form dialog or user control to make user choose a value. And that value bonded to a datasource property. And is that possible if user choose the value which has a string and a integer pair and that string goes to bounded cell and the integer goes to another property of the datasource class that has also bounded to an another datagrid cell. i hope i am clear to express my self. Sorry about my mistakes in my sentences.

 

Thanks for all help.

 
New Post 4/16/2009 11:31 AM
  palli
11824 posts
1st Level Poster




Re: DataGridView Custom Controls 

Hi,

Hmmm... I must admit that I did read your text a few times and all the times I read it I lost track before reaching the end :-)

To tell you what I do know about your questions though, then customized cells within DataGridView are not yet possible but there is an open issue here that requests it's implementation.

About being able to select from a List of KeyValuePair(s) then that is easy for a combobox. I think I even posted a sample for exactly that just a few days ago.

You might consider using a Doubleclick on a textboxcolumn in your datagridview to fire up the form... might work in some situations.

For databinding, it might be a good idea for you to look at one of our codesamples for datagridviews which you can find here.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 4/16/2009 1:56 PM
  x_Vanish
8 posts
No Ranking


Re: DataGridView Custom Controls 

Thank you very much for the links to sample codes. I have really understood the way i have to go.

and i saw the issue for custom controls in datagridview. VWG-1298

 
New Post 4/16/2009 1:59 PM
  palli
11824 posts
1st Level Poster




Re: DataGridView Custom Controls 

Hi,

Great!

Good luck with your quest. Feel free to ask if you need any more help.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 4/16/2009 2:40 PM
  jayhobbs
1664 posts
1st Level Poster




Re: DataGridView Custom Controls 

Hi

If your data is databound you can consider showing a Datagrid then calling the second form with the selected DataRowView.

I use this technique for opening edit forms

Jay

 

 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Using the Visua...  DataGridView Custom Controls
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS