Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 05-05-2007, 08:28 AM   #1
Default Grid view in link using C#


hi friends
am new in asp.net

pls help me

it is very urgent


page load:

DataSet ds = BuildDataSet();
DataGrid1.DataSource = ds;
DataGrid1.DataBind();


private DataSet BuildDataSet()
{
DataSet ret = new DataSet();
DataTable dt = new DataTable();
DataRow dr = null;

// Define table column names and datatypes
DataColumn dc = new DataColumn("ID",Type.GetType("System.Int32"));
dt.Columns.Add(dc);
dc = new DataColumn("Name",Type.GetType("System.String"));
dt.Columns.Add(dc);
dc = new DataColumn("Date",Type.GetType("System.DateTime")) ;
dt.Columns.Add(dc);

// Fill the table with sample data
for(int i = 1;i < = 10;i++)
{
dr = dt.NewRow();
dr["ID"] = i;
dr["Name"] = "John Smith";
dr["Date"] = DateTime.Now.AddSeconds(i * 10);
dt.Rows.Add(dr);
}

// Return the dataset to the caller
ret.Tables.Add(dt);

return ret;
}
current output

ID Name date
1 johnsmith
.
...

i need one more link colum

how can i add

i want out put looks like this

ID Name Date link
1 john smith 1/1/2007 hyperlink (link go to my another page b.aspx)

pls help me it is very urgent


yogarajan
yogarajan is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TRADING FEMALE CELEB INTERVIEWS ON DVD stu DVD Video 1 05-26-2008 09:39 AM
.net 2.0 gridview view details link issue BradleyRush Software 0 10-29-2007 09:24 PM
ASP.Net 2.0 - Want details view but need control & placement of textboxes etc. daveydave999 Software 0 10-05-2007 04:12 PM
asp.net : custom code to delete data from Grid view (Database) sara_23apr Software 1 06-19-2007 01:08 PM
Re: Question about MS critical updates John Coode A+ Certification 0 06-30-2004 06:08 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46