I m using this code in C#.net, for dynamic creation of GridView without using DB.
<CODE>
AddDataToTable( TextBox1.Text.T rim(), TextBox2.Text.T rim(),Label2.Te xt, (DataTable)Sess ion["myDatatabl e"]);
GridView1.DataS ource = ((DataTable)Ses sion["myDatatabl e"]).DefaultView;
GridView1.DataB ind();
}
}
</CODE>
tell me Delete Command...
User Profile
Collapse
-
i m not using database, i m jst passing the value from textbox to grid using DataTable.
i need to delete this value from grid. is it possible to do this....Leave a comment:
-
Dynamic Creation of GridView using DataTable
I m using this code in C#.net, for dynamic creation of GridView without using DB.
<CODE>
protected void Page_Load(objec t sender, EventArgs e)
{
if (!Page.IsPostBa ck)
{
Session["myDatatabl e"] = CreateDataTable ();
GridView1.DataS ource = ((DataTable)Ses sion["myDatatabl e"]).DefaultView;... -
Thank u,
But i didnt find any answer. give me some code suggestions. is it possible to delete a datatable values in gridview, using Delete button in gridview.
Plz do suggestions on this...Leave a comment:
-
Thanks 4 replying me,
i got d answer, i used datatable to do this, passing values from textbox to gridview.
but now i need to pass the value from gridview to Database.
can u suggest me for this with ASP.net(C#) code...Leave a comment:
-
it should increase like this
ie
CompanyName.... ....AccountNo1. .....AccountNo2 .......AccountN o3 goes onnnn
Microsoft...... .............12 3456........... .23242343...... ........3545435 34
Microsoft...... .............45 6789........... .3423423....... ...........2342 4234
but it shld increase at runtime.
no account number creation at the time of table creation....Leave a comment:
-
Code to passing textbox values to gridview in C#.net
how can i pass textbox value to gridview using C#.net at runtime not using database values.
i m hving textbox1 and gridview1.
can anyone suggest me to do this coding in ASP.NET(C# language). -
Thankz for reply me,
i m not asking that, i m asking abt increase column,
like account number1, account number2........ ...............Leave a comment:
-
Automatic creation of DB fields.
i hv to increase my Database fields at runtime.
Example: i am hving fields like
1.company name
2. account number.
i hv to increase many account number for single company name.
how can i dynamically increase the field ie.(account number field).
FrontEnd - ASP.NET(C#)
BackEnd - SQL Server2005 -
tina2626 started a topic passing textbox value to gridview using C#.net at runtime not using databasein SQL Serverpassing textbox value to gridview using C#.net at runtime not using database
how can i pass textbox value to gridview using C#.net at runtime not using database values.
i m hving textbox1 and gridview1.
can anyone suggest me to do this coding in ASP.NET(C# language).
No activity results to display
Show More
Leave a comment: