Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 November 22nd, 2006, 08:55 AM
Authorized User
 
Join Date: Sep 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datagrid Bind Problem

Hi Friends

         I want to bind the String with the DataGrid , in such a way
that i have one string say "125:test" . I want this string to be bound with the datagrid , so that , each and every character , means
1 2 5 : t e s t , will store individually ,in the individual cell of the datagrid.

           Please , guide me.


Thanking you,
Param


 
Old November 23rd, 2006, 12:34 PM
Authorized User
 
Join Date: Apr 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to vivekshah Send a message via Yahoo to vivekshah
Default

Hi

The below code will bind the text in individual cell's of the data grid.



Code:
public void fillgrid()
{
   string str = "125:test";
   dg1.DataSource = str;
   dg1.DataBind();
}

Hope this the solution you opted for.



Vivek Shah





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Bind Data in DataGrid akumarp2p C# 2005 2 December 30th, 2006 12:11 PM
can we bind datagrid and dropdown list rakeshgv SQL Server 2000 0 August 21st, 2006 02:13 AM
Bind datagrid to recordset MAntis_sg Classic ASP Databases 0 May 15th, 2006 07:31 AM
Bind data to datagrid use 2 different SQL statemen yuenyong ASP.NET 1.0 and 1.1 Basics 2 November 22nd, 2005 06:44 AM
Bind image to the datagrid learner_7983 ADO.NET 3 November 1st, 2004 02:00 AM





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