Click here to Skip to main content
15,920,030 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multi-threaded SOAP calls to different servers a problem? Pin
Mirko198019-Oct-09 22:37
Mirko198019-Oct-09 22:37 
GeneralRe: Multi-threaded SOAP calls to different servers a problem? Pin
gstar4220-Oct-09 4:08
gstar4220-Oct-09 4:08 
GeneralRe: Multi-threaded SOAP calls to different servers a problem? Pin
Mirko198020-Oct-09 4:30
Mirko198020-Oct-09 4:30 
GeneralRe: Multi-threaded SOAP calls to different servers a problem? Pin
gstar4220-Oct-09 4:33
gstar4220-Oct-09 4:33 
GeneralRe: Multi-threaded SOAP calls to different servers a problem? Pin
Mirko198020-Oct-09 5:58
Mirko198020-Oct-09 5:58 
QuestionVideo display Pin
saran.m19-Oct-09 21:15
saran.m19-Oct-09 21:15 
AnswerRe: Video display Pin
Christian Graus20-Oct-09 0:04
protectorChristian Graus20-Oct-09 0:04 
QuestionHow to insert data into a GridView from the textboxes Pin
Nopo19-Oct-09 20:55
Nopo19-Oct-09 20:55 
Hi all,

I have a Grid view on my page and I need it displayed on Page Load with only the column names. I then need to save data into the Grid view with values for the textboxes after clicking ADD button.

This is what I have but it doesn't do what I want to it to do.

Page_Load:
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
this.dgInfoProfile.DataSource = dt;
dgInfoProfile.DataBind();

}



ADD button:
protected void brtAdd_Click(object sender, EventArgs e)
{
try
{
////DataTable dt = new DataTable();
DataRow dr = dt.NewRow();
dr["Full Names"] = txtFirstName3.Text;
dr["Identifying Number"] = txtIdentityNo.Text;
dr["Passport Number"] = txtPassportNo.Text;
dt.Rows.Add(dr);

////Bind GridView Here with this Table
this.dgInfoProfile.DataSource = dt;
dgInfoProfile.DataBind();

}
catch (Exception ex)
{
Response.Write(ex.Message);
}

} Confused | :confused: Confused | :confused:

if you have any idea on how to get this done, I'd really appreciate your advise.

Thanks.
AnswerRe: How to insert data into a GridView from the textboxes Pin
Calla19-Oct-09 21:12
Calla19-Oct-09 21:12 
GeneralRe: How to insert data into a GridView from the textboxes Pin
Nopo19-Oct-09 21:23
Nopo19-Oct-09 21:23 
AnswerRe: How to insert data into a GridView from the textboxes Pin
nagendrathecoder19-Oct-09 21:26
nagendrathecoder19-Oct-09 21:26 
GeneralRe: How to insert data into a GridView from the textboxes Pin
Nopo19-Oct-09 21:30
Nopo19-Oct-09 21:30 
GeneralRe: How to insert data into a GridView from the textboxes Pin
nagendrathecoder19-Oct-09 21:38
nagendrathecoder19-Oct-09 21:38 
GeneralRe: How to insert data into a GridView from the textboxes Pin
Nopo19-Oct-09 21:42
Nopo19-Oct-09 21:42 
GeneralRe: How to insert data into a GridView from the textboxes Pin
nagendrathecoder19-Oct-09 21:45
nagendrathecoder19-Oct-09 21:45 
AnswerRe: How to insert data into a GridView from the textboxes Pin
stancrm19-Oct-09 21:41
stancrm19-Oct-09 21:41 
GeneralRe: How to insert data into a GridView from the textboxes Pin
nagendrathecoder19-Oct-09 21:42
nagendrathecoder19-Oct-09 21:42 
GeneralRe: How to insert data into a GridView from the textboxes Pin
Nopo19-Oct-09 21:59
Nopo19-Oct-09 21:59 
GeneralRe: How to insert data into a GridView from the textboxes Pin
stancrm19-Oct-09 22:01
stancrm19-Oct-09 22:01 
GeneralRe: How to insert data into a GridView from the textboxes Pin
Nopo19-Oct-09 22:11
Nopo19-Oct-09 22:11 
GeneralRe: How to insert data into a GridView from the textboxes Pin
nagendrathecoder19-Oct-09 22:04
nagendrathecoder19-Oct-09 22:04 
AnswerRe: How to insert data into a GridView from the textboxes Pin
nagendrathecoder19-Oct-09 21:51
nagendrathecoder19-Oct-09 21:51 
GeneralRe: How to insert data into a GridView from the textboxes Pin
Nopo19-Oct-09 22:16
Nopo19-Oct-09 22:16 
QuestionSSIS Pin
Iain Wiseman19-Oct-09 20:37
Iain Wiseman19-Oct-09 20:37 
AnswerRe: SSIS Pin
J4amieC19-Oct-09 21:48
J4amieC19-Oct-09 21:48 

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.