On Mon, May 16, 2011 at 2:18 PM, Manikandan T <[email protected]> wrote: > Hi stephen, > I gone through your code... It's nice... > I have a work around for this... > Pls try this... > Dim DT As New DataTable > DT.Columns.Add("S.N") > For i As Integer = 0 To 5 > DT.Rows.Add() > DT.Rows(DT.Rows.Count - 1).Item(0) = i + 1 > Next > > Dim grd As New DataGridView > grd.DataSource = DT > grd.Name = "grd1" > Form1.Panel1.Controls.Add(grd) > Form1.Panel1.Controls.Item("grd1").Refresh() > Form1.ShowDialog() > It works fine... Hope it helps for you.. > Thanks, > Manikandan.T -----------------------
Thanks. I think it is a docking issue with the overwhelming panel(s) that I have. If one of them is set to .Visible = False I see my middle panel. :( Panel1 Dock = top Panel3 Dock = Fill Panel2 Dock = bottom -- Stephen Russell Unified Health Services 60 Germantown Court Suite 220 Cordova, TN 38018 Telephone: 888.510.2667 901.246-0159 cell -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
