Hey Guys...
What is the diference in bind data into a datagrid without predefined
columns and a datagrid with predifined columns????
When I try to bind data into a datagrid without predefined columns, I have
sucess. Otherwise, I don't have sucess.
Why???? 8 1183
what does "don't have success" mean? Is there an error?
Most likely you are binding incorectly is all.
The reason to specify the columns is numerous.... but let's look at your
issue(s) first.
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message
news:ej**************@TK2MSFTNGP11.phx.gbl... Hey Guys...
What is the diference in bind data into a datagrid without predefined columns and a datagrid with predifined columns????
When I try to bind data into a datagrid without predefined columns, I have sucess. Otherwise, I don't have sucess.
Why????
I'm not receiving an error, the datagrid creates a new row, but the values
doesn't appear in this new row...
What can I do???
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:ON**************@tk2msftngp13.phx.gbl... what does "don't have success" mean? Is there an error? Most likely you are binding incorectly is all. The reason to specify the columns is numerous.... but let's look at your issue(s) first.
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:ej**************@TK2MSFTNGP11.phx.gbl... Hey Guys...
What is the diference in bind data into a datagrid without predefined columns and a datagrid with predifined columns????
When I try to bind data into a datagrid without predefined columns, I
have sucess. Otherwise, I don't have sucess.
Why????
Is this similar to how you specified your output?
<asp:BoundColumn DataField="yourFieldName" HeaderText="Some
Text"></asp:BoundColumn>
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message
news:%2***************@tk2msftngp13.phx.gbl... I'm not receiving an error, the datagrid creates a new row, but the values doesn't appear in this new row...
What can I do???
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:ON**************@tk2msftngp13.phx.gbl... what does "don't have success" mean? Is there an error? Most likely you are binding incorectly is all. The reason to specify the columns is numerous.... but let's look at your issue(s) first.
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:ej**************@TK2MSFTNGP11.phx.gbl... Hey Guys...
What is the diference in bind data into a datagrid without predefined columns and a datagrid with predifined columns????
When I try to bind data into a datagrid without predefined columns, I have sucess. Otherwise, I don't have sucess.
Why????
The datasource of the datagrid is a datatable, that haves 5 columns (Id,
Description, Price, Amount, Total). The datagrid have 7 columns (Id,
Description, Price, Amount, Total, EDIT, DELETE). This last 2 columns are
columns to edit and delete rows of the datagrid.
Do you know what is happenning?????
Thank's
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:OD**************@TK2MSFTNGP11.phx.gbl... Is this similar to how you specified your output? <asp:BoundColumn DataField="yourFieldName" HeaderText="Some Text"></asp:BoundColumn>
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:%2***************@tk2msftngp13.phx.gbl... I'm not receiving an error, the datagrid creates a new row, but the
values doesn't appear in this new row...
What can I do???
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:ON**************@tk2msftngp13.phx.gbl... what does "don't have success" mean? Is there an error? Most likely you are binding incorectly is all. The reason to specify the columns is numerous.... but let's look at
your issue(s) first.
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:ej**************@TK2MSFTNGP11.phx.gbl... > Hey Guys... > > What is the diference in bind data into a datagrid without
predefined > columns and a datagrid with predifined columns???? > > When I try to bind data into a datagrid without predefined columns,
I have > sucess. Otherwise, I don't have sucess. > > Why???? > >
You didn't answer the question...
HOW (code please) are you tieing the datacolumn to the datagrid?
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message
news:eP*************@tk2msftngp13.phx.gbl... The datasource of the datagrid is a datatable, that haves 5 columns (Id, Description, Price, Amount, Total). The datagrid have 7 columns (Id, Description, Price, Amount, Total, EDIT, DELETE). This last 2 columns are columns to edit and delete rows of the datagrid.
Do you know what is happenning?????
Thank's
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:OD**************@TK2MSFTNGP11.phx.gbl... Is this similar to how you specified your output? <asp:BoundColumn DataField="yourFieldName" HeaderText="Some Text"></asp:BoundColumn>
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:%2***************@tk2msftngp13.phx.gbl... I'm not receiving an error, the datagrid creates a new row, but the values doesn't appear in this new row...
What can I do???
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:ON**************@tk2msftngp13.phx.gbl... > what does "don't have success" mean? Is there an error? > Most likely you are binding incorectly is all. > The reason to specify the columns is numerous.... but let's look at your > issue(s) first. > > -- > Curt Christianson > Owner/Lead Developer, DF-Software > www.Darkfalz.com > > > "André Almeida Maldonado" <de***@bol.com.br> wrote in message > news:ej**************@TK2MSFTNGP11.phx.gbl... > > Hey Guys... > > > > What is the diference in bind data into a datagrid without predefined > > columns and a datagrid with predifined columns???? > > > > When I try to bind data into a datagrid without predefined
columns, I have > > sucess. Otherwise, I don't have sucess. > > > > Why???? > > > > > >
Sorry.... I really didn't answer the question.. See the code:
Dim tabPrPe As DataTable = New DataTable("Produtos")
Dim rowLinha As DataRow
Page_Load
tabPrPe.Columns.Add("Código", System.Type.GetType("System.Int16"))
tabPrPe.Columns.Add("Produto", System.Type.GetType("System.String"))
tabPrPe.Columns.Add("Unitário", System.Type.GetType("System.Double"))
tabPrPe.Columns.Add("Quantidade", System.Type.GetType("System.Double"))
tabPrPe.Columns.Add("Total", System.Type.GetType("System.Double"))
End Sub
Sub Insert......
rowLinha = tabPrPe.NewRow()
rowLinha("Código") = drpPediProd.SelectedValue
rowLinha("Produto") = drpPediProd.SelectedItem.Value
Try
rowLinha("Unitário") = Double.Parse(txtPediPrVa.Text)
Catch ex As Exception
End Try
Try
rowLinha("Quantidade") = Double.Parse(txtPediPrQu.Text)
Catch ex As Exception
End Try
rowLinha("Total") = Double.Parse(txtPediPrQu.Text)
tabPrPe.Rows.Add(rowLinha)
End Sub
This is the code....
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:OT**************@TK2MSFTNGP09.phx.gbl... You didn't answer the question... HOW (code please) are you tieing the datacolumn to the datagrid?
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:eP*************@tk2msftngp13.phx.gbl... The datasource of the datagrid is a datatable, that haves 5 columns (Id, Description, Price, Amount, Total). The datagrid have 7 columns (Id, Description, Price, Amount, Total, EDIT, DELETE). This last 2 columns
are columns to edit and delete rows of the datagrid.
Do you know what is happenning?????
Thank's
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:OD**************@TK2MSFTNGP11.phx.gbl... Is this similar to how you specified your output? <asp:BoundColumn DataField="yourFieldName" HeaderText="Some Text"></asp:BoundColumn>
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:%2***************@tk2msftngp13.phx.gbl... > I'm not receiving an error, the datagrid creates a new row, but the values > doesn't appear in this new row... > > What can I do??? > > > "Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem > news:ON**************@tk2msftngp13.phx.gbl... > > what does "don't have success" mean? Is there an error? > > Most likely you are binding incorectly is all. > > The reason to specify the columns is numerous.... but let's look
at your > > issue(s) first. > > > > -- > > Curt Christianson > > Owner/Lead Developer, DF-Software > > www.Darkfalz.com > > > > > > "André Almeida Maldonado" <de***@bol.com.br> wrote in message > > news:ej**************@TK2MSFTNGP11.phx.gbl... > > > Hey Guys... > > > > > > What is the diference in bind data into a datagrid without predefined > > > columns and a datagrid with predifined columns???? > > > > > > When I try to bind data into a datagrid without predefined columns, I > have > > > sucess. Otherwise, I don't have sucess. > > > > > > Why???? > > > > > > > > > > > >
step through it with the debugger. Your try/catch is probably bombing but
you have nothing in the catch.
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message
news:O0**************@tk2msftngp13.phx.gbl...
Sorry.... I really didn't answer the question.. See the code: Dim tabPrPe As DataTable = New DataTable("Produtos")
Dim rowLinha As DataRow Page_Load
tabPrPe.Columns.Add("Código", System.Type.GetType("System.Int16"))
tabPrPe.Columns.Add("Produto", System.Type.GetType("System.String"))
tabPrPe.Columns.Add("Unitário", System.Type.GetType("System.Double"))
tabPrPe.Columns.Add("Quantidade", System.Type.GetType("System.Double"))
tabPrPe.Columns.Add("Total", System.Type.GetType("System.Double"))
End Sub Sub Insert...... rowLinha = tabPrPe.NewRow()
rowLinha("Código") = drpPediProd.SelectedValue
rowLinha("Produto") = drpPediProd.SelectedItem.Value
Try
rowLinha("Unitário") = Double.Parse(txtPediPrVa.Text)
Catch ex As Exception
End Try
Try
rowLinha("Quantidade") = Double.Parse(txtPediPrQu.Text)
Catch ex As Exception
End Try
rowLinha("Total") = Double.Parse(txtPediPrQu.Text)
tabPrPe.Rows.Add(rowLinha)
End Sub
This is the code.... "Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:OT**************@TK2MSFTNGP09.phx.gbl... You didn't answer the question... HOW (code please) are you tieing the datacolumn to the datagrid?
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:eP*************@tk2msftngp13.phx.gbl... The datasource of the datagrid is a datatable, that haves 5 columns
(Id, Description, Price, Amount, Total). The datagrid have 7 columns (Id, Description, Price, Amount, Total, EDIT, DELETE). This last 2 columns are columns to edit and delete rows of the datagrid.
Do you know what is happenning?????
Thank's
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:OD**************@TK2MSFTNGP11.phx.gbl... > Is this similar to how you specified your output? > <asp:BoundColumn DataField="yourFieldName" HeaderText="Some > Text"></asp:BoundColumn> > > -- > Curt Christianson > Owner/Lead Developer, DF-Software > www.Darkfalz.com > > > "André Almeida Maldonado" <de***@bol.com.br> wrote in message > news:%2***************@tk2msftngp13.phx.gbl... > > I'm not receiving an error, the datagrid creates a new row, but
the values > > doesn't appear in this new row... > > > > What can I do??? > > > > > > "Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem > > news:ON**************@tk2msftngp13.phx.gbl... > > > what does "don't have success" mean? Is there an error? > > > Most likely you are binding incorectly is all. > > > The reason to specify the columns is numerous.... but let's look at your > > > issue(s) first. > > > > > > -- > > > Curt Christianson > > > Owner/Lead Developer, DF-Software > > > www.Darkfalz.com > > > > > > > > > "André Almeida Maldonado" <de***@bol.com.br> wrote in message > > > news:ej**************@TK2MSFTNGP11.phx.gbl... > > > > Hey Guys... > > > > > > > > What is the diference in bind data into a datagrid without predefined > > > > columns and a datagrid with predifined columns???? > > > > > > > > When I try to bind data into a datagrid without predefined columns, I > > have > > > > sucess. Otherwise, I don't have sucess. > > > > > > > > Why???? > > > > > > > > > > > > > > > > > > > >
Curt, Thank's..
I change the code and have new dificulties.... I'll post a new message...
If you could, help me again.
Thank's
"Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem
news:Os**************@TK2MSFTNGP11.phx.gbl... step through it with the debugger. Your try/catch is probably bombing but you have nothing in the catch.
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:O0**************@tk2msftngp13.phx.gbl...
Sorry.... I really didn't answer the question.. See the code: Dim tabPrPe As DataTable = New DataTable("Produtos")
Dim rowLinha As DataRow Page_Load
tabPrPe.Columns.Add("Código", System.Type.GetType("System.Int16"))
tabPrPe.Columns.Add("Produto", System.Type.GetType("System.String"))
tabPrPe.Columns.Add("Unitário", System.Type.GetType("System.Double"))
tabPrPe.Columns.Add("Quantidade", System.Type.GetType("System.Double"))
tabPrPe.Columns.Add("Total", System.Type.GetType("System.Double"))
End Sub Sub Insert...... rowLinha = tabPrPe.NewRow()
rowLinha("Código") = drpPediProd.SelectedValue
rowLinha("Produto") = drpPediProd.SelectedItem.Value
Try
rowLinha("Unitário") = Double.Parse(txtPediPrVa.Text)
Catch ex As Exception
End Try
Try
rowLinha("Quantidade") = Double.Parse(txtPediPrQu.Text)
Catch ex As Exception
End Try
rowLinha("Total") = Double.Parse(txtPediPrQu.Text)
tabPrPe.Rows.Add(rowLinha)
End Sub
This is the code.... "Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem news:OT**************@TK2MSFTNGP09.phx.gbl... You didn't answer the question... HOW (code please) are you tieing the datacolumn to the datagrid?
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"André Almeida Maldonado" <de***@bol.com.br> wrote in message news:eP*************@tk2msftngp13.phx.gbl... > The datasource of the datagrid is a datatable, that haves 5 columns (Id, > Description, Price, Amount, Total). The datagrid have 7 columns (Id, > Description, Price, Amount, Total, EDIT, DELETE). This last 2
columns are > columns to edit and delete rows of the datagrid. > > Do you know what is happenning????? > > Thank's > > > "Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem > news:OD**************@TK2MSFTNGP11.phx.gbl... > > Is this similar to how you specified your output? > > <asp:BoundColumn DataField="yourFieldName" HeaderText="Some > > Text"></asp:BoundColumn> > > > > -- > > Curt Christianson > > Owner/Lead Developer, DF-Software > > www.Darkfalz.com > > > > > > "André Almeida Maldonado" <de***@bol.com.br> wrote in message > > news:%2***************@tk2msftngp13.phx.gbl... > > > I'm not receiving an error, the datagrid creates a new row, but the > values > > > doesn't appear in this new row... > > > > > > What can I do??? > > > > > > > > > "Curt_C [MVP]" <software_AT_darkfalz.com> escreveu na mensagem > > > news:ON**************@tk2msftngp13.phx.gbl... > > > > what does "don't have success" mean? Is there an error? > > > > Most likely you are binding incorectly is all. > > > > The reason to specify the columns is numerous.... but let's
look at > your > > > > issue(s) first. > > > > > > > > -- > > > > Curt Christianson > > > > Owner/Lead Developer, DF-Software > > > > www.Darkfalz.com > > > > > > > > > > > > "André Almeida Maldonado" <de***@bol.com.br> wrote in message > > > > news:ej**************@TK2MSFTNGP11.phx.gbl... > > > > > Hey Guys... > > > > > > > > > > What is the diference in bind data into a datagrid without > predefined > > > > > columns and a datagrid with predifined columns???? > > > > > > > > > > When I try to bind data into a datagrid without predefined columns, > I > > > have > > > > > sucess. Otherwise, I don't have sucess. > > > > > > > > > > Why???? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ashish Shridharan |
last post by:
Hi All
I have been trying to add a control to the header cell of
a datagrid on my ASP.NET page. These controls are defined
in the HTML as ASP.NET web controls.
They are being added into the...
|
by: Bill C. |
last post by:
Hello,
I know this has been discussed a lot already because I've been searching
around for information the last few weeks.
I'm trying to implement a DataGridComboBoxColumn class. I've found...
|
by: BBFrost |
last post by:
Win2000
..Net 1.1 SP1
c# using Visual Studio
Ok, I'm currently in a "knock down - drag out" tussle with the .Net 1.1
datagrid.
I've come to realize that a 'block' of rows highlighted within...
|
by: pei_world |
last post by:
I want to implement a key hit with enter to dropdown a combobox that is in
the datagrid. in this case I need to override its original behaviours. I
found some codes from the web. Does anyone know...
|
by: Rick |
last post by:
Hello all, I hope all is well with you.
I am having a seriously difficult time with this problem. Allow me to
set
up the problem.
I have a System.Web.UI.Page with the following controls...
|
by: CVerma |
last post by:
Hi,
I have an embedded datagrid within a datalist. I am not able to
perfrom paging in the datagrid. Any ideas? Here is my code:
Here is my Simplegrid.cs file:
using System;
using...
|
by: CSL |
last post by:
I am using the DataGrid in a Windows Application, how can
I adjust the widths of each column individually.
|
by: Dave |
last post by:
Are there any add-on products or samples available that can do the following
in an vb.net datagrid
I want to compare 2 rows in a datagrid - one row from one database and
another row for another...
|
by: rn5a |
last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB
table. Users can modify the records using this DataGrid for which I am
using EditCommandColumn in the DataGrid. This is the...
|
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= |
last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor
information and the details loads the documents for that vendor in a
datagrid. Everything is working fine until I click...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |