Hi,
How can I bind data to System.Web.UI.WebControls.Table control ?
I put a Table objet in the Form.
Then I create Table object in Page_Load (I fill Table with data), and then
I'm trying to bind data from CS code, to Table object in the Form.
ASPX
*****
<asp:Table id="table" runat="server"></asp:Table>
CS
***
protected System.Web.UI.WebControls.Table tableForm;
....
Page_Load() {
Table table = new Table();
... fill table ...
tableForm = table;
tableForm.Databind();
} 6 1693
Correction ...
Hi,
How can I bind data to System.Web.UI.WebControls.Table control ?
I put a Table objet in the Form.
Then I create Table object in Page_Load (I fill Table with data), and then
I'm trying to bind data from CS code, to Table object in the Form.
ASPX
*****
<asp:Table id="tableForm" runat="server"></asp:Table>
CS
***
protected System.Web.UI.WebControls.Table tableForm;
....
Page_Load() {
Table table = new Table();
... fill table ...
tableForm = table;
tableForm.Databind();
}
What is the reason for using a Table rather than one of
Datagrid/Datalist/Repeater?
Eliyahu
"Neven Klofutar" <neven.klofutar*r.e..mo*****@vip.hr> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Hi,
How can I bind data to System.Web.UI.WebControls.Table control ?
I put a Table objet in the Form. Then I create Table object in Page_Load (I fill Table with data), and then I'm trying to bind data from CS code, to Table object in the Form.
ASPX ***** <asp:Table id="table" runat="server"></asp:Table>
CS *** protected System.Web.UI.WebControls.Table tableForm; ... Page_Load() {
Table table = new Table();
... fill table ...
tableForm = table; tableForm.Databind(); }
No reason ...
In the begging Table seemed like a nice thing ... I'm thinking of rewriting
everything for mentinated controls, but if I can manage with Table it would
be great.
thanx, Neven
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... What is the reason for using a Table rather than one of Datagrid/Datalist/Repeater?
Eliyahu
"Neven Klofutar" <neven.klofutar*r.e..mo*****@vip.hr> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Hi,
How can I bind data to System.Web.UI.WebControls.Table control ?
I put a Table objet in the Form. Then I create Table object in Page_Load (I fill Table with data), and
then I'm trying to bind data from CS code, to Table object in the Form.
ASPX ***** <asp:Table id="table" runat="server"></asp:Table>
CS *** protected System.Web.UI.WebControls.Table tableForm; ... Page_Load() {
Table table = new Table();
... fill table ...
tableForm = table; tableForm.Databind(); }
Neven,
Table is a container. What do you want to databind? The literal content of
the cells? If you think about it, you will logically come to a
datagrid-based solution.
Eliyahu
"Neven Klofutar" <neven.klofutar*r.e..mo*****@vip.hr> wrote in message
news:eu**************@TK2MSFTNGP15.phx.gbl... No reason ... In the begging Table seemed like a nice thing ... I'm thinking of
rewriting everything for mentinated controls, but if I can manage with Table it
would be great.
thanx, Neven
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... What is the reason for using a Table rather than one of Datagrid/Datalist/Repeater?
Eliyahu
"Neven Klofutar" <neven.klofutar*r.e..mo*****@vip.hr> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Hi,
How can I bind data to System.Web.UI.WebControls.Table control ?
I put a Table objet in the Form. Then I create Table object in Page_Load (I fill Table with data), and then I'm trying to bind data from CS code, to Table object in the Form.
ASPX ***** <asp:Table id="table" runat="server"></asp:Table>
CS *** protected System.Web.UI.WebControls.Table tableForm; ... Page_Load() {
Table table = new Table();
... fill table ...
tableForm = table; tableForm.Databind(); }
OK,
but I need to create the following output, how can I do it using
DataList/DataGrid/Repeater
Title 1
- option 1.1
- option 1.2
- option 1.3
Title 2
- option 2.1
- option 2.2
Title 3
- option 3.1
- option 3.2
- option 3.3
- option 3.4
Thanx, Neven
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:ed*************@TK2MSFTNGP15.phx.gbl... Neven,
Table is a container. What do you want to databind? The literal content of the cells? If you think about it, you will logically come to a datagrid-based solution.
Eliyahu
"Neven Klofutar" <neven.klofutar*r.e..mo*****@vip.hr> wrote in message news:eu**************@TK2MSFTNGP15.phx.gbl... No reason ... In the begging Table seemed like a nice thing ... I'm thinking of rewriting everything for mentinated controls, but if I can manage with Table it would be great.
thanx, Neven
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... What is the reason for using a Table rather than one of Datagrid/Datalist/Repeater?
Eliyahu
"Neven Klofutar" <neven.klofutar*r.e..mo*****@vip.hr> wrote in message news:%2****************@tk2msftngp13.phx.gbl... > Hi, > > How can I bind data to System.Web.UI.WebControls.Table control ? > > I put a Table objet in the Form. > Then I create Table object in Page_Load (I fill Table with data),
and then > I'm trying to bind data from CS code, to Table object in the Form. > > ASPX > ***** > <asp:Table id="table" runat="server"></asp:Table> > > CS > *** > protected System.Web.UI.WebControls.Table tableForm; > ... > Page_Load() { > > Table table = new Table(); > > ... fill table ... > > tableForm = table; > tableForm.Databind(); > } > >
Hard to say without knowing anything about what is "Title" and what is
"option".
Eliyahu
"Neven Klofutar" <neven.klofutar*r.e..mo*****@vip.hr> wrote in message
news:Oc**************@TK2MSFTNGP10.phx.gbl... OK,
but I need to create the following output, how can I do it using DataList/DataGrid/Repeater
Title 1 - option 1.1 - option 1.2 - option 1.3 Title 2 - option 2.1 - option 2.2 Title 3 - option 3.1 - option 3.2 - option 3.3 - option 3.4
Thanx, Neven
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:ed*************@TK2MSFTNGP15.phx.gbl... Neven,
Table is a container. What do you want to databind? The literal content
of the cells? If you think about it, you will logically come to a datagrid-based solution.
Eliyahu
"Neven Klofutar" <neven.klofutar*r.e..mo*****@vip.hr> wrote in message news:eu**************@TK2MSFTNGP15.phx.gbl... No reason ... In the begging Table seemed like a nice thing ... I'm thinking of rewriting everything for mentinated controls, but if I can manage with Table it would be great.
thanx, Neven
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... > What is the reason for using a Table rather than one of > Datagrid/Datalist/Repeater? > > Eliyahu > > "Neven Klofutar" <neven.klofutar*r.e..mo*****@vip.hr> wrote in
message > news:%2****************@tk2msftngp13.phx.gbl... > > Hi, > > > > How can I bind data to System.Web.UI.WebControls.Table control ? > > > > I put a Table objet in the Form. > > Then I create Table object in Page_Load (I fill Table with data), and then > > I'm trying to bind data from CS code, to Table object in the Form. > > > > ASPX > > ***** > > <asp:Table id="table" runat="server"></asp:Table> > > > > CS > > *** > > protected System.Web.UI.WebControls.Table tableForm; > > ... > > Page_Load() { > > > > Table table = new Table(); > > > > ... fill table ... > > > > tableForm = table; > > tableForm.Databind(); > > } > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: bardo |
last post by:
Does anyone knwo how I can bind a textbox to a single dataset/dataTable row?
The following will give me only a Column:
textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text",...
|
by: Timm |
last post by:
I have an ASP.NET 2.0 page with two DropDownLists. I am using declarative
data binding wherever possible and trying to minimize the use of code. The
list of values in DropDownList DDL2 should be...
|
by: Barry Gast |
last post by:
Hi. I seem to be running into a problem with binding the text property of a
text box to a column in a data table. When the user updates the text in the
text box through the interface (form), the...
|
by: Rourke Eleven |
last post by:
I have looked and searched. What good is the databind property on
Radiobuttons? How does one go about actually using it? What is a good
resource on this? I understand that I can easily get/set...
|
by: Bruce |
last post by:
Hi, there,
I meet a problem about comboBox binding.
--------------------
Database: Northwind
Tables: 1) Products 2) Categories
I create a form (named "form1") to edit the record from...
| |
by: JSantora |
last post by:
Essentially, InsertAT is broken!
For the past couple of hours, I've been getting this "Parameter name:
'-2147483550' is not a valid value for 'index'." error.
Apparently, its caused by having...
|
by: Rich |
last post by:
Hello,
Following an example at
http://www.vb-tips.com/dbpages.aspx?IA=DG (by Cor Lightert and Ken Tucker)
on binding a dataRelation to a Datagridview for sqlClient, I was able to
view rows...
|
by: =?Utf-8?B?Sm9obiBCdW5keQ==?= |
last post by:
New to databinding in vs2005, I always did it manually in 2003. I have no
problem loading comboboxes, and a change in that combobox changes the data in
the textboxes but I can not figure out a way...
|
by: =?Utf-8?B?VmVybm9uIFBlcHBlcnM=?= |
last post by:
I am having trouble with the binding of a check box. I have a form for
editing and adding reps. I am using a bindingsource and a bindingnavigator.
I have on the form an "Active" checkbox, which...
|
by: Max |
last post by:
Hello,
I made a windows form with a combo box and 4 text boxes. All 5 objects should get their data from a data set which is populated
in the form load method. The combo box has item ids. When...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |