R
unread,Sep 7, 2010, 6:42:18 PM9/7/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
I am not sure what to do in the in cell painting event. I have looked
at the example given in msdn site and had implemented this example
with my custom control. When I look at the datagrid, I do not see my
control instead I see string[].Array. When I click on the cell and go
into edit mode, I can see and edit my control.
How can I modify the code so that by default, the data is displayed in
my user control. Thank you.
On Sep 3, 11:24 pm, Arsalan Tamiz <
sallus...@gmail.com> wrote:
> Normally the rendering of a "Cell" in DataGridView control
> is handled through CellPainting event. If your goal is to just change the
> look of a cell then this is simple. You just have to use the CellPainting
> event.
>
> But here as I can see you need custom editing too. For this purpose you need
> to host your own control in DataGridView Cell.
>
> Here is a msdn article<
http://msdn.microsoft.com/en-us/library/7tas5c80(v=VS.90).aspx>which
> > > - Show quoted text -- Hide quoted text -