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 October 18th, 2004, 07:40 PM
Authorized User
 
Join Date: Oct 2004
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default databinding for datagrid?

hi guys
m using windows appication using vb.net

i have my textbox which are binded
 Me.txtDocNo.DataBindings.Add("Text", mAcctng.InvoiceTable, "DOCNO")

can i use datagrid to bind? ihave my
button that shows next and prvious record

tnx

 
Old October 21st, 2004, 03:09 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try the following code

DataTable Datatable = (DataTable)grid.DataSource;

then use this Datatable to bind the data to TextBox



It is not how much we do,
but how much love we put in the doing.

-Mother Theresa
 
Old October 21st, 2004, 10:26 PM
Authorized User
 
Join Date: Oct 2004
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default



instead of textbox i want is datagrid ,
is this possible?

 
Old October 23rd, 2004, 01:05 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes it is possible, try and reply here!



It is not how much we do,
but how much love we put in the doing.

-Mother Theresa
 
Old October 24th, 2004, 07:56 PM
Authorized User
 
Join Date: Oct 2004
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi pradeep ,
can u show me code how to bind datagrid?
tnx


 
Old October 28th, 2004, 03:21 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

DataGrid.DataSource = <source>;

will bind the Data to DataGrid


It is not how much we do,
but how much love we put in the doing.

-Mother Theresa





Similar Threads
Thread Thread Starter Forum Replies Last Post
Databinding a Generic Collection to a Datagrid rolandatem ASP.NET 2.0 Professional 0 October 7th, 2006 11:08 PM
Cant fill datagrid with dataset (databinding error Tsjelle Pro VB.NET 2002/2003 1 April 5th, 2004 12:36 PM
ArrayList DataGrid databinding celades C# 0 October 9th, 2003 06:39 AM
DataGrid ArrayList DataBinding celades .NET Web Services 1 October 9th, 2003 06:36 AM





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