Re: UserControl in DataGridView cell

Charlotte Foust <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <F55048AF7E974F429BB24597D7355EEA4B9E5D@INFOSERVER04.infostat.local>
Here's some air code for an ultragrid in MyBase.Load event: 

Dim editor As  New <usercontrolname>
editor.Parent = Me
grid1.DisplayLayout.Bands(0).Columns("<columnname>").EditorControl =
editor

Hope that helps.  You just bind the uc to the datacolumn of the grid. 

Charlotte Foust


-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:[email protected]] On Behalf Of
Francisco Serrano
Sent: Saturday, May 26, 2007 1:11 AM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] UserControl in DataGridView cell

Hi,

I dont't know how set the instance of the user control as the
EditorControl for the cell. Have you an example of it?

The situation is a datagridview with fields in that I can set the code
of the customer or press the button for search in other form that
customer (the usercontrol is within of the cell, with the textbox and
the button, because I use it in other forms out the datagridview).

Thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.