all groups > asp.net datagrid control > april 2005 > threads for april 22 - 28, 2005
Filter by week: 1 2 3 4 5
ItemStyle question
Posted by leodippolito NO[at]SPAM gmail.com at 4/28/2005 1:01:06 PM
Hello sirs,
In my aspx file I have a datagrid with some BoundColumn's. When a
format has been defined for a column (for colors, horizontal alignment,
etc), it adds an ItemStyle element inside the bound column element, as
in this example:
<asp:BoundColumn DataField="DEEMAIL" SortExpression="... more >>
I've lost my drop down list box!
Posted by postings NO[at]SPAM alexshirley.com at 4/26/2005 10:28:51 AM
Hi
I've got a nasty problem with my datagrid. Sorry for the long post,
but I am trying to be clear and compact here.
FYI - About my datagrid:
-------------------------------------------------------------------
I have in the datagrid and an EditCommandButton like so:
<asp:EditCommandCol... more >>
Columns are displayed twice
Posted by Phani at 4/26/2005 12:00:00 AM
I have two datagrids .... after handling the click event in one datagrid
..... using its data i query the database and get the data for the second
datagrid
in both the grids i am generating the columns dynamically
the problem is in the second datagrid the columns are appearing twice
i d... more >>
DataKey Field problem
Posted by Phani at 4/26/2005 12:00:00 AM
Hi everyone !!!
I have a problem here with the DataKey
when i try to retrive the data from the DataKeys[e.Item.ItemIndex] i get
nothing out of it ...
can anyone tell me the reason for this ....plz do help me
The main thing i want to do is
display a datagrid first and then depending on t... more >>
Datagrid Moving up and down
Posted by John Smith at 4/25/2005 2:59:26 PM
Hi,
How we could do moving up and down the datas in a datagrid. Is there any
way could do this without hitting the server .
thanks in adavance
John S
... more >>
Show Date only from DateTime in DataGrid
Posted by bernardpace NO[at]SPAM yahoo.com at 4/25/2005 8:14:38 AM
Hi,
I am using the following code to display a datagrid on my page. Now
one of the columns is of type DateTime(DataField="myDate"). Now when
the datagrid is being shown, the date is given in the following
format: 4/30/2005 12:00:00AM
Now I require to show only the date, ie time is not requi... more >>
Export to excel problem
Posted by kelvinweb NO[at]SPAM gmail.com at 4/25/2005 1:23:22 AM
Hi All,
I don't know why my program exports to excel which can't convert cell
format ?
for example, I am using the following code:
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;
filename=OutstandingOrderDetailReport.xls");
"OrderN... more >>
DataRowView - deleting rows: A little quiz -or- Why doesn't this work...
Posted by Chris Mayers at 4/25/2005 12:00:00 AM
Can anyone please tell me what is wrong with the following code:
I have a datagrid showing data from in a DataView.
The following code snippet is supposed to delete any rows where the
'LineType' column contains WD.
The strange thing is it works sometimes (10%?) but usually I get an error:
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Need to create Hieararical DataGrid using ASP.Net Datagrid !!!
Posted by Phani at 4/25/2005 12:00:00 AM
I have two tables one company table and the other products table ...
the main datagrid should show the details of the companies and it should
contain a button which on clicked will display another datagrid embedded in
the first datagrid which spans all the columns of the first datagrid ....
... more >>
MXDatagrid paging problem
Posted by saravanakumar velusamy via DotNetMonster.com at 4/25/2005 12:00:00 AM
I am using MXDatagrid with paging. I set allowpaging=True in property.
But paging is working for only 10 pages. if i clik 12 or 13th pages it
return back to 2 or 3 page recpectively. Pls help to me. Very Urgent!!!
sample:
My paging will be: 1 2 3 4 5 6 7 8 9 10 ...
if i click "..." the 11th... more >>
TextBox Value
Posted by Simon Abolnar at 4/24/2005 12:00:00 AM
I have TextBox column in datagrid.
I would like to update database with values when user click on button
(outside datagrid).
Dim cell As TableCell=datagrid.Items(row).Cells(col)
textbox=CType(cell.FindControl("TextBox1"), TextBox)
If user change text of TextBox in one column, command:
tex... more >>
datagrid raw
Posted by Simon Abolnar at 4/23/2005 6:02:08 PM
I would like to read data from datagrid.
How can I read one cell from datagrid (raw, column).
How can I find out total numbers of raws.
Thanks for help,
Simon
... more >>
ItemCreated question
Posted by BobU at 4/23/2005 3:26:11 PM
I've got a data grid that uses viewstate to maintain its state between
posts. I also have a button outside of the data grid which, when clicked, in
its server-side click event handler, sets a mode value (in viewstate) that I
want the data grid's ItemCreated handler to act on. However, the Item... more >>
Printing Datagrid
Posted by Nigel Stratton at 4/22/2005 2:07:44 PM
How can one control the pagination of a grid. When I print the last row on a
page gets cut in half. I have seen discussions on style sheets but can they
control the pagination as well?
Also my grid prints ok for the first page but subsequent pages have no
internal dividing lines only the bo... more >>
button column
Posted by Chris at 4/22/2005 12:58:48 PM
I need to add a button column to my datagrid. I need to be able to do this
at runtime. I can not have the tag <columns></columns> in my aspx page.
This is where I am at
Private Function CreateProjectDataSource(ByVal projectds As DataSet, ByVal
dg As DataGrid) As ICollection
Try
Dim btn A... more >>
Datagrid column formatting
Posted by Kelly at 4/22/2005 11:30:56 AM
Is it possible to set the column widths of a datagrid?
This is driving me crazy, and I haven't found a solution yet. I'm pretty new
to ASP.NET so there may be an easy way I'm just not aware of, however, I've
Googled this until my eyes hurt and still haven't found a solution.
Also, how would ... more >>
SQL DTS and Asp.net
Posted by anonymous at 4/22/2005 8:54:46 AM
Does some one know how to execute a DTS from asp.net?... more >>
Change/read value from control in EditItemTemplate
Posted by postings NO[at]SPAM alexshirley.com at 4/22/2005 7:30:02 AM
Hi
In my datagrid I have a textbox in an EditItemTemplate like so
--------------------
<asp:TextBox id=txtPrice ontextchanged="txtPrice_TextChanged"
runat="server" AutoPostBack="True">
--------------------
I also have back end code like this:
--------------------
Sub txtPrice_TextC... more >>
Paging with Datagrid Control
Posted by Joey Liang via DotNetMonster.com at 4/22/2005 12:00:00 AM
Hi all,
I have met some problems in implementing paging with datagrid
control. From what i know to do paging we must use sqlDataAdapter and
dataset but I am using microsoft access database instead of SQL server as a
result i cant use SqlDataAdapter and dataset to retrieve data from
micr... more >>
how can I get the DataKeyField
Posted by Kylin at 4/22/2005 12:00:00 AM
All that I want to get the DataKeyFielD
this is the under code
Response.Write(DataGrid1.DataKeyField[i].ToString());
but the result is no I want ..
<!-- html.. -->
<%@ Page language="c#" Codebehind="DG_DataKeyFied.aspx.cs"
AutoEventWireup="false" Inherits="ForTest.DG_DataKeyFied" %>
... more >>
CheckBox in DataGrid .
Posted by Kylin at 4/22/2005 12:00:00 AM
How can I judge which checkbox is checked ?
for(int i=0;i<dgOrderList.Items.Count;i++)
{
CheckBox
ordercheck=(CheckBox)dgOrderList.Items[i].FindControl("OrderCheck");
if (ordercheck.Checked==true)
{
Response.Write(i.ToString());
}
}
and no results that ... more >>
|