![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |