Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 26th, 2005, 10:24 PM
Authorized User
Join Date: Jul 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formatting Datagrid

Sub DrawGrid()

     With pDatagrid
         .MappingName = "TeamPlayers"
         .AlternatingBackColor = Color.LightGoldenrodYellow
         .GridLineColor = Color.Black
         .ForeColor = Color.Blue
     End With

     With Col2
         .MappingName = "Players"
         .HeaderText = "Player"
         .Width = 260
         .NullText = ""
     End With

     With Col3
         .MappingName = "JerseyNumber"
         .HeaderText = "Number"
         .Width = 50
         .NullText = ""
     End With


End Sub

Sub BindChildData()
' Codes in here

Me.DataGrid1.DataSource = pTable

End Sub

When I use a Datareader then populate a table the code is A-OK but when I use a table from a function it doesn't have any effect.
Can anybody please tell me if what is wrong with my implementation or difference from a Table from a datereader and Dataadapter (did not use Dataset)

'Part of Function that returns a Table
Dim Mytable As New DataTable()

Proud To Be Pinoy
Proud To Be Pinoy

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting datagrid column dates badgolfer VS.NET 2002/2003 12 August 9th, 2006 08:24 AM
Formatting e.Item.Cells in Datagrid rstelma ASP.NET 1.0 and 1.1 Professional 18 February 26th, 2006 07:34 AM
need help in Datagrid formatting prasadd ASP.NET 1.x and 2.0 Application Design 1 October 31st, 2005 11:09 AM
Formatting in DataGrid with SQLServer shmacgregor ASP.NET 1.x and 2.0 Application Design 2 November 30th, 2003 12:59 AM
Beginner - Datagrid formatting question badgolfer VB.NET 2002/2003 Basics 1 November 18th, 2003 01:15 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.