all groups > asp.net datagrid control > september 2004 > threads for september 22 - 28, 2004
Filter by week: 1 2 3 4 5
Blank Text values - just wondering about this
Posted by postings NO[at]SPAM alexshirley.com at 9/28/2004 9:15:47 AM
Hi
I'm just wondering why the following behavour is happens:
If I try to get a text value from a datagrid (i.e.
e.Item.Cells(x).Text), and that value is blank, I will get " "
instead of a blank value.
I assume this is behaviour by design? But I wonder why this is the
case? I'm just ... more >>
onedit method
Posted by John H at 9/27/2004 2:59:50 PM
I have a datagrid that is bound to a database table. One field in the table
is gender. When my datagrid first renders the Gender column shows "Male" or
"Female". When I click Edit the Gender column displays 2 radio buttons so
you can choose male or female.
The thing is, I want to ensure tha... more >>
Changing Datagrid columns at runtime
Posted by Georg Scholz at 9/27/2004 11:54:14 AM
Dear all,
I'm writing an ASP.NET application, which allows flexible editing of
tables stored in an oracle database. Therefore, it is necessary to
create all the bound columns at RUNTIME.
So far, I'm already able to create bound columns and also to create an
"Edit" Button column.
The p... more >>
Problem with dataKeyField
Posted by Flare at 9/26/2004 7:52:47 PM
Hi
Im having a problem with the DataKeyField and a array of a custom class.
I have eg. this class
class employee
{
public int ID
{ get / set }
public String Name
{ get / set }
}
I can do this
Employee emp[] = FACTORY.GetEmployees();
datagrid1.DataSource = emp; // ... more >>
Datagrid batch update
Posted by Applevalley01 at 9/25/2004 9:37:02 PM
I have created an excel like grid where the grid defaults to edit mode when
it is renderered. But I would like a way to perform a batch update since I am
dealing with 10000 rows in the grid. I do not want to make a roundtrip to the
database for each row that was modified. I would appreciate it... more >>
Typed DatSet as a datasource to a Datagrid
Posted by BJM at 9/25/2004 8:04:05 PM
Hi,
I am having a problem adding rows to a typed dataset and using the typed
dateset as a data source to bind to a DataGrid. I receive the The
IListSource does not contain any data sources. Error message
I'm developing an app in asp.net using VB to allow a user to insert rows to
a Datag... more >>
Column won't resize in datagrid
Posted by VB Programmer at 9/25/2004 5:41:23 PM
I cannot get my first 2 columns to adhear to my width settings. Any ideas?
The datagrid is defined as:
<asp:DataGrid id="dgLog" runat="server" Width="990px" Height="96px"
BorderColor="#999999" BorderStyle="None"
BorderWidth="1px" BackColor="White" CellPadding="3"
Font-Names="Verdana" ... more >>
dropdown in a datagrid
Posted by GaryB at 9/25/2004 3:07:28 PM
I can put a dropdown in a grid column, databind it, and it will work but how
can I get the itemchanged event so that I can do something with it?
thanks,
G
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Datagrid doesnt populate :(
Posted by Lasse Edsvik at 9/23/2004 3:38:35 PM
Hello
Im trying to do a simple page with data from my local sql server, and page
just shows up blank...... I created a stored procedure with SELECT * FROM
Employees...... returns 9 rows in QA
whats wrong?
using System;
using System.Configuration;
using System.Data;
using System... more >>
drag drop columns- datagrid
Posted by sri_san NO[at]SPAM mailcity.com at 9/23/2004 10:46:24 AM
Hello Group,
I am working on making a datagrid able to move around the
columns(drap, drop with mouse) and align it according to the user.
Not quite sure where to start from. Any pointers would be great!!
Thanks,
Sam.... more >>
Editable datagrid with drop downs and check boxes - sample code?
Posted by leah NO[at]SPAM kaplooey.com at 9/23/2004 9:34:27 AM
Hi. I'm looking for sample code for an EDITABLE grid with checkboxes,
that, when in editing mode, displays a drop down box in the desired
field(s). I have found editable grid samples for WebMatrix, and drop
down samples for VS, but not a combination of both - in either format.
Any ideas? Or e... more >>
boolean BoundColumn
Posted by Serge Lucas via .NET 247 at 9/23/2004 9:03:01 AM
Hello,
I have bound a BoundColumn to a DataGrid, which is linked to a collection whose 1rst element is a bool.
The DataGrid then displays 'true' or 'false', whereas I would like to display 'Y' or 'N' in it.
Is there a mean to avoid using a Dataset for my DataGrid ?
Thanks !
----------... more >>
Dynamically adding a row into an gridview
Posted by Henk at 9/22/2004 8:18:36 PM
Hi All,
I want to dynamically add a row in my gridview. I want to have a row beneath
my headerrow with dropdowns in it, which I can use to filter on that column.
I thought the GridView.RowCreated event would be my friend, by checking
there if I would have an headerrow and then insert a new Gri... more >>
How to get selected cell value?
Posted by Lupina at 9/22/2004 3:00:34 PM
Hi
I am trying to get value of certain cell, after I selected it (in datagrid).
private void UsersDataGrid_SelectedIndexChanged(object sender,
System.EventArgs e)
{
LabelInfo.Text = UsersDataGrid.SelectedItem.Cells[1].Text;
}but LabelInfo is still empty . Why?
... more >>
Repeater paging problem
Posted by Viktor Popov at 9/22/2004 11:28:56 AM
Hi,
I'm trying to do the following but I can't understand what's wrong. Could
you help me here!
I do paging with a Repeater like this:
DataSet ds = new DataSet();
dad.Fill(ds, "MyOffers");
if(ds.Tables[0].Rows.Count==0)
Delete.Enabled=false;
PagedDataSource objPds = new PagedDataS... more >>
How to solve this? Random record in dataset or AdRotator
Posted by Miguel Dias Moura at 9/22/2004 7:41:12 AM
Hello,
I need to display a random image in an ASP.Net/VB web page.
I created a dataset which connects to an access database.
So I got 2 fields:
- Link where the image is placed.
- Link to go when the image is clicked.
Well, I placed an image in the page using this line:
<img src='images... more >>
Datagrid CssClass being overridden by TD style
Posted by Laurence Neville at 9/22/2004 4:26:56 AM
Since I added a style for TD elements to my style sheet I have been unable
to control the look of datagrids using the CssClass properties. Maybe there
is no way round it, but I really need to keep the TD style in place to
control other elements on the page.
Is there a way around this?
He... more >>
|