all groups > asp.net datagrid control > october 2003
Filter by week: 1 2 3 4 5
Get Data from one Grid to another
Posted by Karl Napp at 10/31/2003 10:47:11 PM
I have two tables:
The first is "house" with the columns "house_id" and "house_name".
The second is "room" with "house_id", "room_id", "room_name".
Now, I have two DataGrids. The first should only show the "house_name" and
OnClick it should be able to send the "house_id" to a method that will ... more >>
IsPostBack issues??
Posted by Josh Behl at 10/31/2003 4:52:40 PM
I have a datagrid in my development environment and it works just fine. I
am able to edit and so forth.
I moved it to my production environment and it does not work properly when I
try to edit. The data grid just disappears but my tool bar is still
visible.
I then tried creating a new dat... more >>
What does this error mean?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 10/31/2003 2:01:47 PM
Parser Error Message: Could not load type
System.Web.UI.WebControls.Template from assembly System.Web,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
The code in question is:
<asp:Template ColumnHeaderText="Completed"
ItemStyle-HorizontalAlign="Center">
Thanks.... more >>
AllowPaging and AutoGenerateColumns = false
Posted by coyotes1 NO[at]SPAM yahoo.com at 10/31/2003 12:17:53 PM
I have read that in order for paging to work, on a dg that you
dynamically create the columns, you must create your columns in
Page_Init. If this is true, how am I to create the columns in the
Page_Init if the dg does not get created until a button is clicked?
Please help.
This has been dri... more >>
URGENT question about binding collection to a datagrid onitemdatabound
Posted by ITnerd at 10/30/2003 8:23:48 PM
The following code works to hide specific columns before they are bound to a
datagrid that has "autogeneratecolumns=true"
enabled. My question is: is there any way to do the same from a bindable
user defined collection? I have a "message" class that I don't want to have
to
munge into a DataT... more >>
Updating DataFormatString programmatically
Posted by Cathie at 10/30/2003 6:11:26 PM
Hi All,
I have a situation where I read a string format from a resource file. I
would like this format to be used to format a BoundColumn in the datagrid
I'm displaying. Can I update the DataFormatString at run-time? If so how?
Thanks in advance,
Cathie
... more >>
Datagrid editing
Posted by kai at 10/30/2003 4:43:50 PM
Hi, All
I use ASP.NET 1.1 on Win2K3 server.
I created datagrid and with the editing, delete and update feature. I deploy
this application on IIS.
When it runs on the server, it is very fast, but when access through the
Internet on different computer, it runs very slow because it downlo... more >>
Refreshing DataGrid in page_load
Posted by A.M at 10/30/2003 3:36:57 PM
Hi,
I want to refresh my DataGrid data on every postback.
I have following code in Page_Load event, but after first page load, the
DataGrid never gets refresh.
Here is the code i have in Page_load (it works at first page_load):
Dim DS As DataSet
Dim MyConnection As System.Data.SqlClient.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset
Posted by Nedu N at 10/30/2003 2:36:12 PM
Hi All,
I am facing problem in copying content of table from a untyped dataset into
to a table inside the typed dataset. I wanted to copy the data into typed
dataset in order to ease the further processing using typed references.
DataSet ds = getDataFromDB(); - i am getting the dataset ds f... more >>
ItemCreate event handler changes wrong DataGridItem
Posted by Chris Smith at 10/30/2003 2:25:16 PM
I am changing the EditText in a EditCommandColumn in a DataGrid in an
ItemCreate event handler . The only problem I am having is that instead of
changing the text in the current row it changes the next row.
I watch the value in the debugger, and I see it change at what appears to be
the right... more >>
Aspx - how to add dynamic controls
Posted by Neel at 10/30/2003 1:29:59 PM
All,
How can add a control dynamically in a html table on an
aspx page?
here is the scenario
User selects a dropdown for car make, then based on car
make the next dropdown fills with list of models.
then i am putting a button add another car, when user
clicks it should show new row wit... more >>
datagrid10.aspx sample.
Posted by LL at 10/30/2003 11:25:44 AM
Hi,
I'm testing the QuickStart's datagrid10.aspx. I add paging property to
the grid.
private void MyDataGrid_PageIndexChanged(object source,
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{ MyDataGrid.CurrentPageIndex = e.NewPageIndex;
BindGrid();
}
I found that when ... more >>
How can I do this?!?!?!?!
Posted by coyotes1 NO[at]SPAM yahoo.com at 10/30/2003 5:40:12 AM
I have a datagrid that will page with one record at a time. Instead of
showing the record and all the fields that go with it. How can I put a
user control in its place (ie an ascx file)??????
This way I can page like one would in an access database. I read the
article @ microsoft about somethi... more >>
How do I add a Textbox to my DataGrid?
Posted by B Holt at 10/29/2003 8:11:09 PM
Here's the problem: I am using WebMatrix and although I have a lot of IDE
experience, I am a newbie at Web-based apps.
How Do I get a TextBox into (each row of) my DataGrid to allow the user to
edit the value of one column?
I have seen a lot of "sample code", but all of it contains syntax t... more >>
How can I hide a column in my Datagrid
Posted by George Viveiros at 10/29/2003 2:22:48 PM
I have a datagrid I am populating programmatically, creating the rows
and columns. I need to hide one column. How can I do this? I have seen
another posting on this but the solution was not communicated well.
George
*** Sent via Developersdex http://www.developersdex.com ***
Don't just... more >>
Header Controls
Posted by JemPower at 10/29/2003 9:20:29 AM
Hi All,
Can someone help me with what I believe could be a simple answer. I've
created a datagrid, of which I have a template column containing checkboxes.
What I want to achieve is a checkbox in the header, so that when clicked,
checks all the checkboxes in the grid. I'm having a lot of d... more >>
AutoPostback DropDownList in EditItemTemplate
Posted by at 10/28/2003 8:38:07 PM
I have a dropdownlist as an item in my edititemtemplate.
I need to populate a texbox in the same edititemtemplate with the contents
of the dropdown.
Still with me?
I have set autopostback on the dropdown and have set the
onselectedindexchanged event to catch the change.
Still with me???
... more >>
Overriding a style for the HyperlinkColumn in my datagrid: Please help me.
Posted by SStory at 10/28/2003 1:57:29 PM
I have a style sheet for my site. It has various classes in it.
It has <A: styles defined for all anchor tags.
I have a datagrid in ASP.NET with a stylesheet linked to the page.
It defines links as yellow which is what I normally won't but in this case I
want to override the link color and ... more >>
Adding columns dynamically
Posted by Peter Kamitz at 10/28/2003 12:44:02 PM
hi,
I always get the error: Item has already been added. Key in dictionary: "0"
Key being added: "0" ----when trying to databind the webgrid with
dynamically added columns.
All the columns are added without any problems, but when it comes to the
databinding (=> MyGrid.DataBind()) the error ... more >>
Datagrid column widths
Posted by Davef at 10/28/2003 11:11:12 AM
I try to format the column widths in the property builder/ Format area. Then
when I run it the formating is not there???
--
______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
davef@helixpoint.com
Interested in Affordable Email Marketing?
Check out the Helix... more >>
Datakey in Datagrid
Posted by J. Ormaetxe at 10/28/2003 8:52:05 AM
Hello,
I am developing a Datagrid thar insert, delete and update rows in a Table.
This table has got 2 fields that are primary key. How can i detect which row
is selected to delete??
Thanks,
Asier
... more >>
Turn editable cols on/off in single row inline edit
Posted by bmkealu NO[at]SPAM yahoo.com at 10/28/2003 7:17:05 AM
Hi. I have a datagrid with 2 editable columns, Status and
ScreenContact. When the user chooses to edit a row, one or both of
those columns may be editable depending on a separate value.
In the datagrid_EditCommand, is there a way to tell the DataGrid to
display the Status column's ItemTemplate a... more >>
All my drop down lists get reset to the first value when I go in to edit a record in the datagrid....
Posted by Josh Behl at 10/27/2003 7:32:24 PM
I've got my datagrid working to the point where I can edit records and even
pick different values in my dropdownlists, save the record and have that
data committed to the table. The problem I am having is that when I go into
edit a record each of my picklist values get reset to the first value i... more >>
Heading Style
Posted by Cathie at 10/27/2003 5:02:30 PM
Hi All,
I'd like to set my heading style to the following:
..ListHeading, .ListHeading:link, .ListHeading:visited
{
color: Black;
font-weight: bold;
font-family: Verdana;
font-size: x-small;
text-decoration: none;
border-bottom: solid thin gray;
cursor: hand;
}
..Li... more >>
How do I add an anchor to a boundcolumn?
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 10/27/2003 2:29:40 PM
I have a simple DataGrid and on one of the asp:boundcolumn tags I want
to underline with a link everything in that column. From that link I
will then open a page. How do I add a link around the boundcoulumn?
I tried a regular anchor tag, but got an error about it not being part
of the DataGri... more >>
DataGrid and ListBox problem...
Posted by nischal_muthana NO[at]SPAM yahoo.com at 10/27/2003 1:53:49 PM
Hello All,
I am trying build a web form with a listbox and datagrid on it.
1. I have a dataset into which I load an xml file using ReadXml()
method.
private DataSet LoadDataSet(string FileName)
{
DataSet ds = new DataSet();
ds.ReadXml(FileName);
return ds;
}
2. I then populat... more >>
Can anyone explain why paging does not work if AutoGenerateColumns = false!!?!?!?!?!
Posted by coyotes1 NO[at]SPAM yahoo.com at 10/27/2003 11:14:59 AM
Can anyone explain this?????
I have a dg that I need to page and I need to create columns for it.
Please some one help.
thanks... more >>
DataGrid HyperLinkColumn question
Posted by Baris Seker at 10/27/2003 11:11:21 AM
Hi all,
What I'm trying to do feels like very simple but I can't seem to do it. I
have a datagrid control and the first column is a HyperLink column; a link
to another page that includes variable that retrieved from the db. The html
view of this is below:
<asp:HyperLinkColumn DataNavigateUr... more >>
Setting focus..?
Posted by Kent Johnson at 10/26/2003 2:01:48 PM
Hi all,
I have a Webform with some textboxes on.
How can I set the focus so that a user can start the input directly in the
first textbox in taborder when the forms open? Textbox1 har the taborder set
to 1 but the user still have to push the tab-button twice before TextBox1
gets the focus.
... more >>
Serious issues with webcontrols...
Posted by Nicolas LeBlanc at 10/26/2003 11:58:52 AM
Hi,
First of all, sorry for cross-posting, but some groups look more active than
others, and I sure need to find an answer to this.
I recently rebuilt my website using ASP.NET and I did my forum system using
a datagrid and template columns. I was asked by many users to remove the
LinkButton... more >>
URLEncode Problem from ASP.NET
Posted by vtreddy at 10/24/2003 7:12:14 PM
Hi All:
In my application I am sending the input values through query string =
from a datagrid template column,I used URLEncode to encode the URL =
String,
please find the input below, I am facing a problem when the input string =
contains =AE character ,
Here from ASP.NET I am redirecting to ... more >>
ItemCommand firing instead of SortCommand
Posted by Steven at 10/24/2003 6:46:38 PM
Hi there,
I am having a weird problem. I have a datagrid with both an ItemCommand and
a SortCommand. It was working fine until a day ago. Now, whenever I click
a column to fire the SortCommand, the ItemCommand gets fired instead. In
the debugger, e.CommandName is equal to "Sort", even thou... more >>
Reading a textbox in a datagrid
Posted by Davef at 10/24/2003 7:54:10 AM
I have a datagrid with orders in it. Each line has a textbox that I have to
enter a price in the textbox. How do I read each specific textbox?
--
______________________
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
davef@helixpoint.com
Interested in Affordable Email Marketing... more >>
Paging doesn't work if columns built up in code?
Posted by Bernard O'Flynn at 10/23/2003 6:19:43 PM
Hi
I am building my bound columns in code. I have attached an event listener
for the paged event.
However when I click on the next page link the event doesn't fire and the
page refreshes without the datagrid even there!
If I build up the bound columns on the aspx page everything works fine.
... more >>
DataGrid & datasouce close
Posted by PaulMac at 10/23/2003 10:51:03 AM
Hello All,
I have a webpage containing a DataGrid control. The datasource is a
DataReader. The code is like so:
AsaCommand Cmd = new AsaCommand( "SELECT ... FROM ...", Db.Connection );
DataGridNet.DataSource = Cmd.ExecuteReader();
DataGridNet.DataBind();
Is it necessary to do an explic... more >>
Datagrid not displaying
Posted by mholli at 10/23/2003 7:56:12 AM
I have tried tried dropping a datagrid on an aspx page and then settting the dataource property and calling rebind. Nothing shows up on the page. Is there something wrong with our IIS config?... more >>
Adding controls to the cells of a dat grid
Posted by Ramakrishnan Harish at 10/23/2003 4:53:00 AM
Dear All,
Is it possible to use to the datagrid to take inputs from the user by
placing controls in the cells of the grid and saving everything at the
end.
Please provide me a solution for doing the same
Thanx and Regards
Harish M.R
*** Sent via Developersdex http://www.developers... more >>
Opinion
Posted by bspann at 10/22/2003 5:34:26 PM
I need some opinions.
Here is the situation: I have a DataGrid with TemplateColumns. To display
my values, I use the ASP code in the HTML. So for example, I have <%#
DataBinder.Eval(Container.DataItem, "myData", "{0:C}") %>
Question:
Is this the perferred way of displaying my data? When... more >>
DataGridControl not populating
Posted by kevinc NO[at]SPAM yaletech.com at 10/22/2003 4:07:28 PM
Hi,
I'm attempting to load raw XML(XML string), parse it and populate a
text box, parse it further into an ArrayList, then set the ArrayList
as the DataSource of a DataGrid.
I had no problem getting this to work in a VB.NET Windows App. But I
can't seem to populate the DataGrid in an VB.NET... more >>
Hierarchical data in datagrid
Posted by Nicolas Martinez at 10/22/2003 3:32:24 PM
this topic was discussed a few days ago and this link came up
http://msdn.microsoft.com/msdnmag/issues/03/10/CuttingEdge/
but im trying to go further:
i'm designing a sort of database explorer where you can choose from a set of
parameters
what info you see, and the levels in the hierarchy i... more >>
Combo box with foreign key in Datagrid
Posted by Rob Edwards at 10/22/2003 2:23:38 PM
Two tables: Employee, Salary
I want to be able to update the Salary information with the dates and
changes to each employee in a datagrid.
The EmployeeID is the foreign key in the Salary table.
OK... so I created a datagrid with the datasource being the Salary table.
I converted the Empl... more >>
Datagrid does not display
Posted by mholli at 10/22/2003 1:01:12 PM
I have an ASPX page and the datagrid does not display even though I have a dataset set for datasourse and have tried rebind. Any suggestions?... more >>
RUN/execute a Command-Line command from an ASP page.
Posted by Lucas Cowald at 10/22/2003 4:15:19 AM
Hi,
I need to RUN/execute a Command-Line command from an ASP page.
This is the command:
sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2 -p
Can you show me a code how to run this command from an ASP page? I need to
run it from an ASP/VBscript?
Thank you very much for your help!
... more >>
custom DataGrid placement on page?
Posted by andreranieri NO[at]SPAM hotmail.com at 10/21/2003 4:51:39 PM
I've searched for this but haven't found an answer.
Is it possible to customize a datagrid's location on the page in
run-time?
I have two datagrids, one on top of the other. I'm not currently using
paging as the query feeding the uppder grid is only returning the TOP
20 records. I'd like to... more >>
Enabling/Disabling a DataGrid ButtonColumn
Posted by CGuy at 10/21/2003 3:41:37 PM
Hi,
I have a datagrid that has one ButtonColumn which is bound to a database
field.
My requirement is that when the page containing the datagrid is loaded,
I would like the ButtonColumn to be enabled/disabled based on the value of a
boolean variable that is calculated at runtime - i... more >>
ddl in datagrids
Posted by Carl at 10/21/2003 12:07:52 PM
Hello All..
I'm trying to find the best way to edit two columns in a datagrid. The data
source for each of the two editable items are presented in the form a drop
down lists.
Upon clicking edit for a row, I'd like to present a ddl in each of the two
editable columns. The first column dete... more >>
Hide UNBOUND datagrid cols?
Posted by Eddie B. at 10/21/2003 11:36:41 AM
Is there a way to hide an unbound datagrid column? The webform throws an
error when I try to hide any of the columns that I do not have bound at
design time.
... more >>
AllowPaging stuff...
Posted by +The_Taco+ at 10/21/2003 11:27:28 AM
Is there any way to use the AllowPaging proprety without populating our
datagrid with the Dataset object?
I was using the Datareader to populate my datagrid, wich was a lot easier
and probably more performant than the DataSet.
So I am changing my code right now refering to this article :
h... more >>
PagerStyle - Have Both Numeric Pages & Next Prev?
Posted by john.webb NO[at]SPAM tracline.co.uk at 10/21/2003 3:44:20 AM
I wonder if you could help.
Is it possible to have both Numeric Pages and Prev Next on a datagrid
using default paging? And if so, how would I go about it?
Many thanks... more >>
Fully multiple, editable dynamic datagrid.
Posted by Viren at 10/20/2003 3:55:22 PM
Hi,
I've written previously, to no avail. Can someone please help, I am looking
for a working code example, that allows one to create a datagrid on the fly,
with a mixture of both bound and templated columns and that also allows one
the ability edit multiple rows. I have found bits and pieces ... more >>
|