all groups > asp.net datagrid control > june 2005
Filter by week: 1 2 3 4 5
How Move children from one TableCell to Another??
Posted by Arthur Dent at 6/30/2005 4:33:39 PM
Heres the deal... i have a datagrid which displays products in a category.
Any category has its own set of columns which show up in the grid, so it is
defined as AutoGenerateColumns=True
There is a static column which has a textbox and button for entering a qty
and
adding the item to your sh... more >>
2 question about Datagrid
Posted by J-T at 6/30/2005 3:37:17 PM
Hi,
When you have an object which has several propertise and you want to show
them in datagrid ,how you would bind it to a datagrid?
How can I insert a progress bar into a datagrid?
Thanks
... more >>
Datagrid OnDeleteCommand
Posted by CalSun at 6/29/2005 10:10:36 AM
I have a datagrid with a templatecolumn where I have the Delete linkbuttons.
As I click on the Del linkbutton, it calls the delete_func. However, I can't
get the value of the cell to use it as a key in sql_delete statement.
Here is my delete buttons
<asp:TemplateColumn HeaderText="Del/Add" I... more >>
May I disable underline in one gridview Hyperlink field ?
Posted by Dmitry N.Ananyev at 6/29/2005 12:00:00 AM
May I disable underline in one gridview Hyperlink field ?
... more >>
Datagrid events only fire if Databind is called in Page Load event
Posted by sysdesigner at 6/28/2005 12:51:01 PM
I need help with understanding why this happens.
In the code below the Edit and Update events will only fire if the Databind
is called in the PageLoad on the PostBack. Whenever the Databind statement
in the Pageload is replaced with the if statement (commented out below), then
the event st... more >>
Infragistics Ultra Web Grid Updating Problem
Posted by Paul W at 6/28/2005 10:56:15 AM
I was recently assigned to build a database administration tool with an
infragistics web grid UI. I am able to pull the data into a dataSet and
bind it fine. However, when I attempted to use the UpdateCell or
UpdateCellBatch events to transfer updated data to the data set, the
event arguements (... more >>
Export Datagrid data to Excel?
Posted by et at 6/27/2005 12:34:38 PM
How can I export data from a grid into Excel? Or from a datatable?
I don't have a query I am displaying the schema from a database using a
datatable, and now I want to export it to excel:
dtFields = conn.GetOleDbSchemaTable(OleDbSchemaGuid.Columns, New Object()
{Nothing, Nothing, Nothing, N... more >>
DataGrid Update Command
Posted by Antony Futter at 6/27/2005 11:02:49 AM
Hi,
I am relatively new to .Net and have an question regarding updates from a
Datagrid on an Webform.
I have successfully got the data to display and then changed to the edit
mode in the Grid, but when the update command is triggered, it seems to skip
lines of code in the dataadaptor's aut... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Export to Excel has no Data
Posted by Paul D. Fox at 6/27/2005 9:54:27 AM
It's a simple Datagrid export to Excel however, when I view the spreadsheet,
its empty. Even the file size is zero. What could be causing this?
... more >>
Format Double Values using BoundColumn.DataFormatString
Posted by Prasad Dannani at 6/25/2005 7:05:20 AM
Hi,
I have a Double Value. i am planning to display it in "0.0000" format i.e.
the decimals length is fixed i.e. 4.
I am using math.round function which is reducing the length to 4. but if the
length is just 2 digits then it is giving 2 digits only. where i want 4
digits.
Can anyone help... more >>
How to bing a collection with sub-collection to grid
Posted by gzinger at 6/23/2005 2:19:05 PM
I have a collection of objects (say Customers for example). Each Customer
Object has a collection of orders. When I bind such complex type to datagrid
control I see the first level fields (fields of customer class) fine and I
see a link to orders, but when I click on the link it shows no recor... more >>
Where to set "ShowFooter" attribute
Posted by Bren Besser at 6/23/2005 12:04:06 PM
When or where (which event) can I use to set the "ShowFooter" attribute
of my DataGrid.
I put summary info in the footer. After I return my DataSet, I test the
Rows.Count. If there are no rows, I'd like to hide the footer.
I've tried to set it in the PageLoad and the OnDataBound events but I... more >>
Disable ButtonColumn inside DataGrid through logic
Posted by sheidt at 6/23/2005 11:28:32 AM
What I am looking to do is disable a column of ButtonColumn type insid
my DataGrid when another column of ButtonColumn types is pressed. Fo
instance, I have a button in my first column of the DataGrid that I a
using to select my row and do a little extra logic. I also have
button in the last c... more >>
Check boxes on a Datagrid
Posted by Robert E. Flaherty at 6/23/2005 8:04:25 AM
Can you have check boxes on a datagrid and if so, where could I get the
details and possibly a sample or two.
... more >>
Data Grid Cell Vertical Scroll Bar. High Importance
Posted by kesarisuresh at 6/23/2005 1:26:58 AM
Hi guys,
i have a problem in asp.net data grid. If u have a solution let m
know.
Problem is such that i have a data grid with 2 columns. Columns widt
is fixed. one column's data is huge. Because of this the data get
wrapped in that column and the size of data grid keeps increasing.
want to ... more >>
AutoGenerateEditButton=true
Posted by at 6/23/2005 12:00:00 AM
(I'm sorry if this is the wrong place for a GridView Question but I don't
know a forum as good as this one)
My Q is: Is there any way to AutoGenerate the edit button and have it show
an image instead of the text link style? I want to have an image with an
onmouseover image so it lights up.
... more >>
DataGris Paging not working (event not firing)
Posted by Ryan Rueckl at 6/22/2005 5:05:42 PM
Hello,
It seems that no matter what I do, I cannot get paging working on my
datagrid. I'll try to explain as best as I can how my program behaves. I
did build the datagrid properties in the designer first, not at runtime,
including the bound columns I use. I have it set to allow paging w... more >>
Hiding/Displaying... Columns....
Posted by Brown Smith at 6/22/2005 4:46:46 PM
How to hide/display the datagrid colums at run time?
..Net 1.1.
Thanks,
Smith
... more >>
How to.... ?
Posted by Brown Smith at 6/22/2005 4:30:24 PM
For each row in a particualr column (nth column) I am computing the data
from different columns and putting the data during ItemDataBind event. I
have a specific requirement as if all the rows in that column (nth column)
is "T" then I want to change the cell data to "transfer". Unless
ItemDataBi... more >>
AutogenerateColumns and Static columns.
Posted by Arthur Dent at 6/22/2005 2:52:01 PM
Hello all,
I have a grid which is auto-generate columns, but i also have to static
columns in the grid as well.
These render at the front (left) of the columns. Is there anyway to have
them render at the end (right)?
Thanks in advance,
- Aaron.
... more >>
How to send multiple URL fields in Http Header using asp.net datagrid
Posted by Kamal Ahmed at 6/22/2005 12:00:00 AM
Hi All,
I have a problem with Asp.Net Datagrid. I have two 2 databound fields in
Asp.Net Datagrid "Code" & "Name". I want to send values of both columns by
clicking on (Code) URL field.
e.g. Values should be sent to Http header like this:
/pagename.aspx?code=01&name=Christopher
How is i... more >>
fully editable datagrid causing crash
Posted by fizzy at 6/21/2005 2:50:27 AM
i need to display up to possibly a few hundred rows from a database
table in a datagrid that is fully editable.
there need to be 5 editable numerical columns as textboxes and 2 non
editable columns (strings) and a delete button for each row.
after reading several tutorials on the web, i got ... more >>
datagrid help
Posted by dollar at 6/20/2005 11:31:05 PM
i don't know what I changed in my datagrid, it can't trigger
the item_command event now, pls help.
--
dollar
------------------------------------------------------------------------
Posted via http://www.codecomments.com
----------------------------------------------------------------... more >>
Datagrid dropdown
Posted by zoom14151 at 6/20/2005 5:52:37 PM
I have a datagrid with two dropdowns and I can fill the dropdown from
stored procedure, that's not a problem. The question is I need the fil
the second dropdown by the value selected from the first dropdown.
created the stored procedure to retrieve the data, but I can't figur
out how to pass ... more >>
edit and delete together
Posted by at 6/19/2005 12:00:00 AM
Hi
I have built a page for edit and a page for delete with delete confirmation
added in ItemDataBound event.
But then when I combine these pages into one aspx with code-behind. The
delete confirmation didn't show up if the user has entered into edit mode
i.e. the edit column has changed to ... more >>
how to build a dynamic datagrid
Posted by sysdesigner at 6/17/2005 10:45:03 AM
Hi,
We have several sets of report data that we want to be able to edit from one
editable datagrid. We are storing the column heading names in the database
and want the aspx datagrid to be built dynamically from the data in the
database.
Basically we want to have one aspx page for all o... more >>
How Can I do this in ASP.NET...
Posted by msnews.microsoft.com at 6/17/2005 12:00:00 AM
Hi All
I m facing a problem.
My Scenario is that i have a table in database with the name of =
"userprofile".
In my web site the user enters his personal information for building his =
profile in our system.=20
During building his profile the system asks the user for his personal =
website ... more >>
Need reviews and advice on web and data control tools and vendors
Posted by Tim Meagher at 6/16/2005 9:47:54 AM
In order to reduce my development time, I would like to acquire a suite of
tools for ASP.Net development that provide grid, treeview, menus, and other
similar web controls. I would like a tool that provides good documentation
and that is fairly intuitive to use, is robust and gearing up for ASP.... more >>
hiding a column
Posted by at 6/16/2005 12:00:00 AM
Hi
Where is the proper place to hide a column dynamically? I tried putting
this line in ItemDataBound,
myDataGrid.Columns[2].Visible = false;
but is giving me index out of range error! Am I putting this in a wrong
place (ItemDataBound)?
Any idea?
TIA
--
... more >>
format true/false
Posted by Saladin at 6/16/2005 12:00:00 AM
Hi
Webform; bound datagrid.
My boolean column shows TRUE or FALSE. I'd rather have a checkbox. How to
format please?
Thanks
Graeme
... more >>
AddHandler statement
Posted by bbernieb at 6/15/2005 3:06:03 PM
I created a DataGrid dynamically using a PlaceHolder; to sort the DataGrid I
used the AddHandler statement ( AddHandler myDataGrid.SortCommand, AddressOf
myEventHandler). It didn't work. The code never reached "myEventHandler"
So, I tried using the AddHandler statement on a DataGrid that wasn't... more >>
Hyperlink template column and change link text based on Condition
Posted by Paul D. Fox at 6/15/2005 10:29:03 AM
How do I create a Hyperlink column in a Datagrid which launches a pop-up =
window, and have the text in the hyperlink change based on a condition? =
I'm trying to do something like the following:
<asp:TemplateColumn HeaderText=3D"Status">
<ItemTemplate>
<a href=3D"Javascript://" onClick=3D... more >>
Using DataViewManager with a WebControls.DataGrid
Posted by martyn_wynne NO[at]SPAM hotmail.com at 6/15/2005 9:15:05 AM
I must be missing somthing here, i can't get DataViewManager to work
with a WebControls.DataGrid, i've followed the MSDN article,
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconsettingdefaulttableviewsusingdataviewmanager.asp
Great! Looks exactly what i want, its all fine up till... more >>
when deleting a row from a datagrid how do i get the cell ( 0 ) value
Posted by Shaminda Illangantilaka at 6/15/2005 12:00:00 AM
when deleting a row from a datagrid how do i get the cell ( 0 ) value of the
spcific row, to put that value inside the SQL statement under the WHERE
condition
... more >>
How to skip the unbounded column...? new bie
Posted by Maheshkumar.R at 6/15/2005 12:00:00 AM
Hello groups,
I got one problem
i am using <%# DataBinder.Eval(Container.DataItem, "Column1")%>
in the itemtemplate of the datagrid
for the first time when i bind to grid i am selecting the column1 and =
displaying
for the second time when i bind it i am not selecting the column1
be... more >>
SortCommand and custom headers - why won't they play nice?
Posted by Nevyn Twyll at 6/14/2005 9:53:11 AM
I have a datagrid on my webform.
I am programmatically adding columns to it and hooking it up to a dataset.
In my ItemDataBound(), I am adding some text and background coloring to the
Items, and to the Header as well.
This all works great!
Now, however, I want to be able to sort the grid b... more >>
Howto display an ASP.net datagrid rows as columns and vice versa?
Posted by Jimmy at 6/14/2005 12:00:00 AM
Hi
I want to display my datagrid with the columns horizontal and rows vertical,
so just the other way around. For example instead of :
name address city
Tom 200 George Street Sydney
i would like:
name Tom
address 200 George Street
city ... more >>
ASP.net datagrid with more than 1 datasource
Posted by Jimmy at 6/14/2005 12:00:00 AM
Hi
Is it possible to build a datagrid with one column having test1 as a
datasource and another column having test2 as a datasource:
string[] test1 = new string[]{"1", "2", "3"};
string[] test2 = new string[]{"John", "Marc", "Tom"};
I just want a table that looks like this:
1 ... more >>
dropdownlist in datagrid...
Posted by Kezza at 6/13/2005 12:00:00 AM
Hi
I am a newbie to dotnet.
I have a datagrid that also has a ddl and a button in each row.
When the button is clicked I would like to perform an action based on what
is selected in the dropdown list using the rows id as an identifier to the
record.
I am not sure how to go about this. Woul... more >>
Databinding: How do I use the data as a parameter for a method or function?
Posted by Nathan Sokalski at 6/12/2005 10:34:37 PM
I am using a SortedList as my DataSource. However, one of the things I am
using the data for is to generate the URL for the HyperLinks in my DataList.
Therefore, I need to use the result of a Server.UrlEncode() method with the
data as the parameter. The code I am using to get the data from the... more >>
How can I disable a Delete button Based on Condition
Posted by Paul D. Fox at 6/10/2005 10:37:52 AM
I have a Datagrid displaying "Start Date" and "End Date" with a Delete
Button. I want to disable the Delete Button if the Start Date is less than
current date. I believe you do this in the "DataGrid1_ItemDataBound" but
not sure what to code here.
Paul
... more >>
DropDownList problems inside a datagrid
Posted by Michael Kolias at 6/10/2005 10:30:39 AM
Hi everybody,
I am having a problem getting the selected value of a drop down list that is
populated dynamically inside a datagrid control. When I try to access the
selected item on the datagrid_Update function I get an Object reference not
set to an instance of an object.
I am reakky stuck... more >>
how to know print as reached to the client..
Posted by vinod roy via .NET 247 at 6/10/2005 7:50:32 AM
(Type your message here)
Hai
i have a webpage with one imagebutton for print the data, how can i know whether the print out as come or not to the client, can we trace the confirmation from the printer,
--------------------------------
From: vinod roy
-----------------------
Posted by a u... more >>
How do I get the Clicked Event on Hyperlink to execute a Command?
Posted by Paul D. Fox at 6/9/2005 8:57:03 AM
I have a ButtonColumn as a link. When the user clicks on it, I want to =
execute a command to query a database and display data in another grid. =
I need to get the key and pass it to the query.
Here's part of the DataGrid HTML:
<asp:ButtonColumn Text=3D"Select" DataTextField=3D"Schedule" ... more >>
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
Posted by Joey Pang at 6/9/2005 12:00:00 AM
I am trying to update the database field when the checkbox is clicked.
I am trying to modified the following solution but.. got stuck on the
ItemCommand Events where
Dim prodchknew As CheckBox = e.Item.FindControl("chk")
cannot find the control.
I am trying to put the ItemCommand Code into... more >>
SortCommand not firing on DataGrid, EVENTTARGET=","
Posted by Leaf at 6/8/2005 1:17:59 PM
Greetings,
I've read all there is on why SortCommand firing can fail in this
group, and haven't found a solution. Essentially the SortCommand
doesn't fire, no matter what I do. I've set the handler in code, put an
OnSortCommand= in the HTML, tried all different initialization
combinations, no... more >>
Edit a row in a parametrized datagrid
Posted by berto at 6/8/2005 8:38:27 AM
hi all,
I am working in ASP.NET & SQLServer and:
my problem is that I have a DataGrid wich is created sometimes with a
whole SQLServer table, and other times with only some rows of it (I
make a search in the same page).
The problem is that I have an edit column in the DataGrid, but if I
make a... more >>
Manipulate the grids output html
Posted by Andy Sutorius via DotNetMonster.com at 6/7/2005 9:33:19 PM
Hi,
The datagrid auto generates html for everything in the grid, including
controls. Can you manipulate the html the grid outputs? Can you make this
auto generated name for a text box, dgdANSI835:_ctl2:type, into this
manipulated name for the text box, type_119789 (where 119789 represents a
u... more >>
delete button problems in datagrid
Posted by John at 6/7/2005 6:14:02 AM
i have a datagrid with a delete button which for some reason quit working,
i'm thinking its a problem with the database but here is the code:
SqlCommand cmdDeletePIN = null;
try
{
myConnection = new SqlConnection(connectionString);
myConnection.Open();
cmdDeletePIN ... more >>
DataGrid Paging Problem with huge # of records
Posted by Prasad Dannani at 6/7/2005 12:00:00 AM
Hi,
I am having a table with around 80 Lakh Records.
I have to display all records through datagrid paging.
Because of huge size its giving different error messages
I though its better to implement my own paging and retreving only the
current page information from the server.
for tha... more >>
|