Click here to Skip to main content
15,922,533 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCreate a .csv file from an odbc connection Pin
markymark823-Jul-07 8:24
markymark823-Jul-07 8:24 
QuestionCan any body tell me any sites or downloads for taking suppor Pin
indian1433-Jul-07 7:15
indian1433-Jul-07 7:15 
AnswerRe: Can any body tell me any sites or downloads for taking suppor Pin
leckey3-Jul-07 8:03
leckey3-Jul-07 8:03 
GeneralRe: Can any body tell me any sites or downloads for taking suppor Pin
indian1433-Jul-07 18:05
indian1433-Jul-07 18:05 
GeneralRe: Can any body tell me any sites or downloads for taking suppor Pin
Sathesh Sakthivel3-Jul-07 18:18
Sathesh Sakthivel3-Jul-07 18:18 
GeneralRe: Can any body tell me any sites or downloads for taking suppor Pin
indian1434-Jul-07 2:53
indian1434-Jul-07 2:53 
QuestionRating System? Pin
Bacanze3-Jul-07 6:31
Bacanze3-Jul-07 6:31 
Questionhow to add a new row in a grid at runtime Pin
jamesmani2k53-Jul-07 4:24
jamesmani2k53-Jul-07 4:24 
using a grid i have created two rows by binding the hidden template field
with a datasource in pageload event,

Now i have to Add a new row in the grid using a button click....maitaining the values in the textbox in the grid entered by user....
=========================
/*
<asp:datagrid id="dgLocsch" runat="server" width="80%" cssclass="lbl_font" autogeneratecolumns="false">
<columns>
<asp:templatecolumn visible="false">
<itemtemplate>
<%# Eval("ROW") %>


<asp:templatecolumn headertext="Day From">
<headerstyle cssclass="sblue">
<itemtemplate>
<asp:textbox id="txtDayFrom" runat="server" width="50px">




*/
coding in page_load event is
===================================

protected void Page_Load(object sender, EventArgs e)
{
Addrow(dgLocsch, 2);


}

private void Addrow(DataGrid dg, int NoOfRows)
{
DataTable dt = new DataTable();
dt.Columns.Add("ROW");

for (int i = 1; i <= NoOfRows; i++)
{
DataRow dr;
dr = dt.NewRow();
dr["ROW"] = i.ToString();
dt.Rows.Add(dr);
}


dg.DataSource = dt;
dg.DataBind();
}

can any one help me......

thank u

AnswerRe: how to add a new row in a grid at runtime Pin
ToddHileHoffer3-Jul-07 7:26
ToddHileHoffer3-Jul-07 7:26 
GeneralRe: how to add a new row in a grid at runtime Pin
jamesmani2k53-Jul-07 19:13
jamesmani2k53-Jul-07 19:13 
Questionhow to add a new row in a grid at runtime Pin
jamesmani2k53-Jul-07 4:23
jamesmani2k53-Jul-07 4:23 
QuestionProblem with Health Monitoring (asp.net c# web app) Pin
But_Im_a_Lady3-Jul-07 3:46
But_Im_a_Lady3-Jul-07 3:46 
QuestionGet value from textbox which is bounded in Gridview Coloumn Pin
vickyshah3-Jul-07 3:42
vickyshah3-Jul-07 3:42 
AnswerRe: Get value from textbox which is bounded in Gridview Coloumn Pin
But_Im_a_Lady3-Jul-07 3:58
But_Im_a_Lady3-Jul-07 3:58 
QuestionASP.NET Pin
.NET- India 3-Jul-07 2:58
.NET- India 3-Jul-07 2:58 
AnswerRe: ASP.NET Pin
Tamimi - Code3-Jul-07 3:00
Tamimi - Code3-Jul-07 3:00 
AnswerRe: ASP.NET Pin
Sathesh Sakthivel3-Jul-07 3:02
Sathesh Sakthivel3-Jul-07 3:02 
AnswerYou've been here long enough to know better Pin
leckey3-Jul-07 3:15
leckey3-Jul-07 3:15 
AnswerRe: ASP.NET Pin
Guffa3-Jul-07 3:26
Guffa3-Jul-07 3:26 
GeneralRe: ASP.NET Pin
Fred_Smith3-Jul-07 3:32
Fred_Smith3-Jul-07 3:32 
GeneralRe: ASP.NET Pin
Tamimi - Code3-Jul-07 3:40
Tamimi - Code3-Jul-07 3:40 
GeneralRe: ASP.NET Pin
Sathesh Sakthivel3-Jul-07 4:10
Sathesh Sakthivel3-Jul-07 4:10 
GeneralRe: ASP.NET Pin
Christian Graus3-Jul-07 10:57
protectorChristian Graus3-Jul-07 10:57 
AnswerRe: ASP.NET Pin
dekart_roo3-Jul-07 5:34
dekart_roo3-Jul-07 5:34 
AnswerRe: ASP.NET Pin
Dario Solera3-Jul-07 7:21
Dario Solera3-Jul-07 7:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.