all groups > asp.net datagrid control > august 2003
Filter by week: 1 2 3 4 5
DataRowView problem
Posted by Dave at 8/31/2003 5:45:39 AM
The problem is... I can't seem to use them. When I try to declare one, I
get:
Compiler Error Message: BC30002: Type 'DataRowView' is not defined.
I am just starting out in ASP.NET and have what I think to be a 'default'
Framework install. Am I missing an include in the GAC?
Dave
... more >>
How to highlight an entire datagrid column?
Posted by wireless200 NO[at]SPAM yahoo.com at 8/30/2003 7:51:39 AM
Selecting a row is easy enough using the MS example:
private void DataGrid1_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
ListItemType itemType = e.Item.ItemType;
if ((itemType == ListItemType.Pager) ||
(itemType == ListItemType.Header) ||
... more >>
Issues with DataGrid control
Posted by Anthony Williams at 8/29/2003 1:02:43 PM
Hi all,
Just a quick question. I'm populating a DataGrid control with a 'GetFiles'
collection I've taken from a directory. Basically, I have a directory full
of PDF files which people want to preview and print from the browser.
I've created a DirectoryInfo object, and have used the GetFiles ... more >>
Preserving Filters
Posted by Rohit Kukreti at 8/28/2003 2:19:56 PM
Hi,
I have written an app which is using a lot of datagrids.
Sorting and Filtering of recs have been done succesfully.
Editing of recs being done either on a different page or by hiding the
datagrid and showing other controls. Now the problem is that
if the user has sorted or filtered the rec... more >>
How to create a datagrid programatically ?
Posted by chak at 8/27/2003 7:57:44 PM
Hi,
Any examples / pointers on how to render a datagrid on the fly in a asp.net
page, based on dynamic parameters ? Something like the way we place
textboxes on a panel from the code behind ....
Thanks.
... more >>
Event problem
Posted by Jonas Karlsson at 8/27/2003 5:40:26 PM
The following code gives a compile error:
Method myGrid_Edit(object,
System.Web.UI.WebControls.DataGridCommandEventArgs)' does not match delegate
'void System.EventHandler(object, System.EventArgs)'
When I change my eventhandler to instead of the DataGridCommandEventArgs
takes the EventAr... more >>
combo
Posted by mozart at 8/27/2003 5:23:33 PM
This occuring a strange fact, I select an item in combo but when I go to
verify: ddlempCodigo.SelectedItem.Value the value is always of the first
item, as if it had not selected, what it can be?
... more >>
DataGrid Paging??
Posted by DaMan at 8/27/2003 1:46:29 PM
I have code that builds a dataset and connects it to a datagrid. I set up
paging but something is broke.
I can do a pagecount property and it returns 6
I tried to use the simple paging example in MSDN and it only will display
the first page, if I hit the next page button it (the datagrid is not... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Problem with edit
Posted by Jonas Karlsson at 8/27/2003 1:17:34 PM
I have a edit problem with my DataGrid. The Update and Cancel buttons won't
show when I press Edit. What can be wrong?! The cod is to be included in a
Sharepoint WebPart therefor I'm not using any ordinary <asp:datagrid> tags.
The control is rendered using MyDataGrid.RenderControl()
I also hav... more >>
Classic ASP Table to DataGrid...formatting color and decimal places
Posted by Next at 8/27/2003 1:04:33 PM
Hello,
I trying to convert an ASP page to ASP.NET using a DataGrid control.
All of the data is being displayed in the DataGrid. But I need help with
formatting.
The asp code segment looks like this:
<%
' list out the metals
do while not rsMetals.eof
intChange = rsMetals(2) - rsMet... more >>
Dataset Caching
Posted by Larry Dodd at 8/26/2003 9:58:24 PM
I have a datagrid that I have created a DataSet for and Bound the DataGrid
to it and the formatting of the data works fine when the page loads. I would
like to take the dataset that was created for the dataset and somehow keep
it in memory so that when I click on the Edit button in the EditColumn... more >>
cancel saving data in datagrid
Posted by Calvin at 8/26/2003 6:22:05 PM
My datagrid cells are all editable textbox and attached onTextChanged event
so that every changes will be saved in the datatable on next postback. My
problem is if the cancel button is clicked instead of save button, i don't
want to do any validation and saving data to datatable but only just qui... more >>
Change color of Item Template TextBox on Condition
Posted by Alan Z. Scharf at 8/26/2003 3:05:03 PM
1. I wantto change the color of a datagrid ItemTemplate TextBox in all the
grid rows depending on radio button choice.
2. How can I do this in C#?
So far I have:
public void dgHoldings_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(rdoHoldingsDi... more >>
CheckBox Template Column
Posted by IntraRELY at 8/26/2003 1:55:40 PM
I need to highlight a datagrid row if the check box is selected for that
row. I am really not clear how to reference it.
TIA,
Steve Wofford
www.IntraRELY.com
... more >>
DataGrid TemplateColumn and Events
Posted by DAC at 8/25/2003 5:14:22 PM
I am creating a datagrid programatically and I successfuly coded a
TemplateColumn (that inherits from ITemplate and implements InstantiateIn).
I want to place an ImageButton there.
How do I:
1. Associate an event for the click on the button?
2. How do I know in which row the user clicked insi... more >>
DataGrid Question
Posted by alien at 8/25/2003 2:29:38 PM
Hi,
I have a DataGrid, where the background color of each cell is different,
depending on the value of the column. Some cells must be painted in red,
others in green, thirds in blue, etc.. How can I set a background color
for each cell dynamically in the Code Behind. Is it possible ?
Than... more >>
CreateChildView
Posted by Bill Greenley at 8/25/2003 11:35:24 AM
DataAdapter = daABC
DataSet = dsABC
3 tables: A, B, and C all returned by a single parameterized Stored
Procedure
Relations = AB and BC
Grid #1 = dgA
Grid #2 = dgB
DataSource for dgA is dsABC
DataMember for dgA is A
after the daABC.fill() I did a set nested = true for both AB and BC, di... more >>
Problem/Question with 'Select button' column
Posted by Jeff Petter at 8/24/2003 1:04:10 PM
I'm writing a tool in asp.net to help the owner's of the existing data =
to purify it prior to importing into a new structure. There are far too =
many fields to display all of them in the datagrid, so I have created =
some common views, displaying somewhat different data in each. I also =
have ... more >>
Multiple index columns (keys)
Posted by Tony at 8/23/2003 12:50:16 AM
Can a DataGrid datakey (column) value be more than one column (composite
key)?
--
-Tony.
... more >>
Can I add tooltiptext to a select button in a datagrd?
Posted by Jim Mitchell at 8/23/2003 12:06:16 AM
Can I add tooltiptext to a select button in a datagrid?
... more >>
Modal Dialog Popup from WebControl - What is wrong with this...
Posted by Jim Mitchell at 8/22/2003 11:31:49 PM
I saw several posts asking for popups from web controls. The standard
answer is that once rendered, the server no longer has control. I had some
success with the following and I was curious if I have broken any rules.
Add this line to the load_page event....
Response.Write("<script languag... more >>
Image Button in Datagrid WebControl
Posted by Jim Mitchell at 8/22/2003 9:55:52 PM
Is there any way to put in image button in the datagrid. The button column
seems to have all the functionality, but does not have an img_url property.
Thanks in advance.
Jim
... more >>
Change text of edit/update/delete buttons
Posted by RH at 8/22/2003 12:20:57 PM
Hi,
I Have a datagrid with edit/update/delete hyperlink buttons and would
like to change the text of these buttons during runtime. How can I do
that?
Regards,
Remco.... more >>
error
Posted by mozart at 8/22/2003 10:18:01 AM
What is this?
A page can have only one server-side Form tag
... more >>
custom datagrid control for reuse
Posted by Sulafa Malik at 8/21/2003 2:04:32 PM
Hi all,
I have created a class for a custom datagrid control, whenn testing the
control it appears ok in design time on the test web form, however doesnt
appear on run time any ideas.
Thanks
... more >>
DataGrid EventCommands? I just can't get it...
Posted by SSP at 8/21/2003 8:33:29 AM
I just can't seem to get the DeleteCommand and UpdateCommand work in a
datagrid.
My setup includes Visual Studio.NET 2003, C# Web Application.
I can very easily create the oleDbConnection, oleDbDataAdapter, the Dataset
and bind to the DataGrid.
I just don't know what to write to be able to Up... more >>
System.ArgumentOutOfRangeException
Posted by leezard at 8/21/2003 1:23:38 AM
Specified argument was out of the range of valid values. Parameter name:
index
Exception Details: System.ArgumentOutOfRangeException: Specified argument
was out of the range of valid values. Parameter name: index
Below is my code:
Sub MyDataGrid_EditCommand(s As Object, e As DataGridCommandEv... more >>
dynamically change
Posted by Saravanan Rathinavelu at 8/20/2003 1:47:29 PM
I need to know how to modify the <asp:BoundColumn/> to
N/A when the datafield value comes in as negative
quantity and color it different on the ASP.Net DataGrid,
help me. thanks
-Saravanan.R-... more >>
LinkButtons in a DataGrid blanks out my complete DataGrid (WTF !!)
Posted by bthomas71chevy NO[at]SPAM yahoo.com at 8/20/2003 1:07:38 PM
OKay, I am starting to pull my hair out here !!
Everytime I click on either of my two LinkButtons (in the DataGrid),
it complete wipes out my DataGrid !! (gone !!)
Why in the world is it doing this !?!?
If it helps, here is the HTML part for the DataGrid:
<asp:datagrid id="DataGrid1" ru... more >>
Help with Delete in DataTable and DataGrid
Posted by J at 8/20/2003 9:30:34 AM
Hi,
Can someone please help with a problem I have. The BOL I think are useless
in explaining what I want to do.
I have a datagrid, that is bound to a dataview. I have a checkbox as a
template column and a button marked 'delete'.
What I want to do, is be able to select a series of rows f... more >>
How to put a full radio button list in each row of datagrid?
Posted by ruu NO[at]SPAM pacbell.net at 8/19/2003 4:10:57 PM
Hello,
I have a datagrid where I display images. I want visitors to be able
to rate the images on a scale of 1 to 10 by clicking a radio button,
which will cause an auto-postback. In that auto-postback event, I
want to be able to identify which row caused it, and determine which
value was s... more >>
Simple question
Posted by Gary at 8/19/2003 10:13:50 AM
Hi,
I have 7 columns on my datagrid, out of which one column (Column No 1) is
hidden (which is containing User ID), and the Column No 3 is displaying user
Name.
Now I have given hyperlink on Column no 3 (i.e User Name) & I want to pick
up the data from Column no 1 (i.e User ID) when I click the... more >>
Datagrid Binding Error "Object does not match target type"
Posted by Karahan Celikel at 8/19/2003 9:49:18 AM
I have a datagrid in which I want to visualize objects of various type
(they inherit from the same base class). I want to display common properties
of the objects over the grid.
At runtime I create an ArrayList that contains all the objects . When I make
the binding I obtain the following err... more >>
Tooltip - binding...
Posted by Paul Aspinall at 8/19/2003 8:26:48 AM
Hi
Is it possible to also bind to the Tooltip property of the control, when
binding the data to the control??
I have a Dataset which contains various bits of data. When a user hovers
over a row, or cell, I want to display a tooltip, which has been bound from
the Dataset.
This will vary from ... more >>
(.NET Newbie) DataGrid killing me !!! (a couple questions)
Posted by bthomas71chevy NO[at]SPAM yahoo.com at 8/19/2003 6:44:17 AM
Okay, I'm brand new to .NET and have a Data Grid that is absolutaly
killing me !! I have a couple questions:
1. I have a Web Label and a HTML Table after the DataGrid and in
design it looks great (in FlowLayout), but when viewed (View in
Browser), the label and table are shifted over to the fa... more >>
Datagrid & imagebutton
Posted by Alessandro at 8/18/2003 3:24:37 PM
I have a datagrid with a templatecolumn, in this template there are two
imagebutton, one for modify the record, one to cancel, but i'm not able to
retrive the unique which is memorized in a hidden column, any idea ?
I tried to set commandargument parameter via code, but i wasn't able to
assign i... more >>
datagrid scrollbar?
Posted by Dave Cullen at 8/18/2003 1:56:05 PM
Don't know if this is the correct newsgroup, but can anyone tell me if
the standatd datagrid control in VB.NET has a scrollbar? I can't find a
property for it.... more >>
Datagrid Autoformat
Posted by Alan Z. Scharf at 8/18/2003 11:54:09 AM
1. Where are the autoformat formats located?
2. Is it possible to add to them?
Thanks.
Alan
___________________________
Alan Z. Scharf
GrapeVine Systems
New York City
... more >>
DataGrid Question
Posted by ashish.dhar.b NO[at]SPAM bayer.com at 8/17/2003 9:27:22 AM
I have a datagrid which I have bound to data set.
One of the cols in the datagrid( dataset) is a boolean
I want to make the backcolor of the row in datagrid to a certain color
when value of the boolean is true.
is there any easy way to do that.
here is what is in my html (aspx)
<asp:datagrid... more >>
DataGrid Disappears After Paging
Posted by Leonard at 8/16/2003 4:55:39 PM
I am using a datagrid that is bound to a dataset that
contains 18 records. The page size is 6 rows. On the
page_load the first six rows are displayed as expected.
The grid allows default paging and I have a page index
changed handler. In the handler I see the
CurrentPageIndex increment ... more >>
Button Column added at run time does not seem to trigger SelectIndexChanged Event.
Posted by Jim Mitchell at 8/16/2003 1:46:15 PM
I have the following button column added to the datagrid. It does not seem
to trigger SelectIndexChanged.
Is there something else I have to do? Thanks in advance.
dcolumn = New System.Web.UI.WebControls.ButtonColumn
dcolumn.ButtonType = ButtonColumnType.LinkButton
dcolumn.DataTextFiel... more >>
Formating a Particular Cell
Posted by Larry Dodd at 8/16/2003 1:34:23 PM
If I have a datagrid and I wanted to format the cell in say Row 6 Column 3
how would I do this. I don't want to format the cell based on the data I
just want to make the cell a different color.
I just need to understand how to tell the datagrid I want to do something to
a particular cell.
... more >>
How to set current page index from unique ID in dataset
Posted by Jim Mitchell at 8/16/2003 12:34:52 PM
I can now find the right page index when I know the unique ID for a table
sorted by account name as show below.
But... Does anyone know a more efficient way other than looping through the
whole dataset?
daAccounts = New SqlClient.SqlDataAdapter("Select * from tblCompanys where
ID < 200... more >>
How to diable buttoncolumn's
Posted by Philip Yeo at 8/15/2003 1:34:17 PM
Just a question,
If I have a column that performs delete. But I want to disable all the
delete buttons in this column when user click's on edit,
I put this code here,
Protected sub mydatagrid_edit(sender as object, e as
datagridcommandeventargs)
mydatagrid.edititemindex = cint(e.it... more >>
controlling size of editcommand column in edit mode
Posted by Nedu N at 8/15/2003 9:46:47 AM
I am facing problem in controlling the size of the edit command coulmn
after...both before clicking edit and also during when we see the
update/cancel look...i have got imgaes instead of Edit and Update/Cancel
text...
Also i face problems in controlling the column widths in edit mode on my
temp... more >>
Controls in certain cells in a grid
Posted by Jeremy Chapman at 8/15/2003 9:19:44 AM
I have a grid with several fields an many records. For fields that have a
large amount of text in them, I want to show a button that the user can
click which will show them the contents of the field in a seperate page, or
seperate control. How can I do this?
... more >>
Datagrid SelectedIndexChanged Problem in CodeBehind
Posted by Brian K. Williams at 8/14/2003 3:33:23 PM
I am attempting to use the SelectedIndexChanged to detect when a row has
been selected. I have seen many examples where they are writing all the code
on the ASPX page.
When I attempt to use the SelectedIndexChanged on the Code Behind it never
fires.
/////////////////////////////////////////... more >>
Dynamically Hyperlink and Event Handler for the Hyperlink ?
Posted by Ken at 8/14/2003 10:26:27 AM
Hi,
I´m creating an Hyperlink dynamically for my DataGrid:
HyperLink hl = new HyperLink();
hl.Text = "MyLink";
hl.NavigateUrl = "#";
e.Item.Cells[3].Controls.Add(hl);
When the user clicks that HyperLink, instead of sending to an specified URL
in the
NavigateUrl, example : hl.Navigate... more >>
Circular references are not supported
Posted by Dan C Douglas at 8/13/2003 5:00:26 PM
I have a user control, and I would like to create another instance of the
user control inside the same user control.
I am doing this because the user control has a datagrid, and in the datagrid
I instantiate a reference to a new instance of the same ascx file that I am
currently on and place i... more >>
Compiler Error Message: CS0123:
Posted by marjan at 8/13/2003 4:24:20 PM
Hi Everyone...Can somebody help me figure out how to fix this error?
I'm out of ideas! Thanks!
CS0123: Method 'IC.Reports.Comp.webic_first.EmpLink_ItemCommand(object,
System.Web.UI.WebControls.CommandEventArgs)' does not match delegate
'void System.EventHandler(object, System.EventArgs)'
I... more >>
|