all groups > asp.net datagrid control > november 2004 > threads for november 1 - 7, 2004
Filter by week: 1 2 3 4 5
TemplateColumn for this? conditionally display icon?
Posted by djc at 11/6/2004 3:45:21 PM
I want to add a column to my datagrid that will display an icon depending on
what value is in a certian field in the database.
1) which type of column to use? TemplateColumn?
2) I'm looking for the best performing way to do this... my database field's
data will match the filename of the icon t... more >>
AutoGenerateColumns won't set to false
Posted by Chance Hopkins at 11/6/2004 10:12:10 AM
I have a really strange problem
I have a project that has been working fine for years.
I have a datagrid with one column. AutoGenerate Columns is set to false and
it was working fine for years.
All of the sudden, it shows all the columns. The grid will NOT stick to just
one.
I am abs... more >>
Paging
Posted by hoz at 11/5/2004 5:34:47 PM
Hi ,
I use a procedure to get list of all users and show them in a
datagrid/datalist/etc.. with SqlDataReader . How can i list X item (lets
say 50) on the first page , 2. 50 on second page and so on
... more >>
how to assign a css class to datagrid header that is a link?
Posted by djc at 11/5/2004 3:10:51 PM
I have a datagrid that has several sortable columns. So the headers become
hyperlinks. I need to be able to assign a css class to just these
hyperlinks? how can I do that? For example, right now I can just assign css
styles to the A tag which does control them but that also controls ALL the
othe... more >>
Value from ItemTemplate?
Posted by Vishal at 11/5/2004 5:21:11 AM
Hello,
This should be simple question. I thought I could solve it
by my own, but unfortunaly I am not able. I have a
datagrid with several asp:TemplateColumn's. In that
template I have the <ItemTemplate> and the
<EditItemTemplate> template. Now I would like to retrieve
the value of the... more >>
column count
Posted by anonymou at 11/4/2004 11:24:42 AM
I have questions regarding data grid control. I am binding
the data at run time to the data grid.
How can I find out number of columns after binding? What
even would handle this?
My binding:
grdTransaction.DataSource = DataSet
grdTransaction.DataBind()
Column: grdTransaction.Columns.Count.T... more >>
Editcommancolumn in datagrind in asp.net
Posted by venkat_chellam NO[at]SPAM yahoo.com at 11/4/2004 7:19:47 AM
I have a question.
I have datagrid in asp.net page. grid will be loaded some information
on page load. One column of the grid is editcommandcolumn type with
edit, update and cancel options.
I don't want the edit button(linktype) to be enabled for all the rows.
Bases on some information, ed... more >>
buttoncolumn or hyperlinkcolumn
Posted by djc at 11/3/2004 6:18:09 PM
I need to be able to click on an item in one of my datagrid columns (an ID
column) and pass that ID value along to a second page which will use the ID
value to query the database for more information. A common scenario indeed
but I am still very new to this. I am not sure as to whether I should u... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ussing CSS with a datagrid control
Posted by djc at 11/3/2004 5:32:48 PM
I am in the middle of reading an article on the datagrid control from the
4guysfromrolla.com website. I already completed the part on formatting the
datagrid but it did not use any CSS for this. It did inform me of the
different 'styles' though:
HeaderSyle, FooterStyle, ItemStyle, and Alternat... more >>
DataGrid does not keep sort when I move to another page
Posted by richmcc1 NO[at]SPAM earthlink.net at 11/3/2004 10:05:59 AM
I created a DataGrid that allows sorting by several columns. However,
if the DataGrid spans more than one page, when I navigate to the next
page the Data is not sorted. Below is PageIndexChanged and
SortCommand methods. Any help would be much appreciated.
private void ActivationsList_PageIn... more >>
DataGrid - Multiple values in single Row
Posted by malavika reddy at 11/3/2004 5:31:39 AM
Hi,
Been stuck on this one for a bit. Would really appreciate any help on
this one.
In Regards to ASP.NET
To start. I have a dataset al like this (ex)
------------------------------------
category | category type
------------------------------------
categ1 type-1
categ1 ... more >>
<asp:Hypercolumn> 2 Data Fields.
Posted by Ankur Goyal at 11/2/2004 6:54:10 PM
<ASP:HyperlinkColumn
DataNavigateUrlField="DataSourceField"
DataNavigateUrlFormatString="FormatExpression"
DataTextField="DataSourceField"
DataTextFormatString="FormatExpression"
FooterText="FooterText"
HeaderImageUrl="url"
HeaderText="HeaderText"
NavigateUrl="url"
ReadOnly="True | False"
... more >>
formating column in the ItemDataBound event
Posted by Ken at 11/2/2004 6:03:01 PM
How can I set the format of a column in the ItemDataBound event ?
I want to set something like "DataFormatString: ${0:f2}" on a column and on
this event (ItemDataBound)
any sug
ken
... more >>
how to specify each column width?
Posted by djc at 11/2/2004 4:51:09 PM
I set my datagrids width to 100% so it always fills the whole screen. But
depending on the amount of data in each field each of the columns resize
when I'm paging. How do I control the width of the grid and each column? I
need them to stay the same. I prefer CSS methods but any info is
appreciat... more >>
NEWBIE - UpdateCommand is not updating - Just reverting back.
Posted by Dave at 11/2/2004 4:03:59 PM
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C4C0F5.906D4FE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Greetings,
I have a functional datagrid on an ASP.net page which displays all the =
projects in our "Sales... more >>
Question on EditGrid
Posted by Rohit Gupta at 11/2/2004 12:14:06 PM
I am using the Editgrid control from microsoft.
When i use a dropdownlist :
<select id="SUserID" name="SelectUserID">UserID</select>
along with the Edit grid, I am unable to save the changes made to the edit
grid.
If I remove the dropdown list, I can successfully save the changes made to
... more >>
Default Picture
Posted by hoz at 11/2/2004 11:02:05 AM
Hi ,
lets say i have an sql table Users ( id, name ,pictureurl)
i use datagrid to show records . my problem is , when pictureurl is null how
can i load default.jpg picture ? binding is done on run time ( using
DataEval.DataBinder)
... more >>
how/where to put logic to format certian columns/cells
Posted by djc at 11/2/2004 8:44:11 AM
how do I go about formatting output of certian columns or cells in a
datagrid? I am in the midst of trying to learn both asp.net/ado.net and TSQL
stored procedure at the same time, all in my 'spare' time since its a hobby
rather than a job... right now at least. Major overload! can someone point
... more >>
hyperlink column text. Where is it??
Posted by GaryB at 11/1/2004 4:38:40 PM
Does anyone have any idea how to get the text out of a hyperlink column in a
web datagrid?
It's a hyperlink column, not a template column so findcontrol does not work
and there is no apparent name to look for.
myGridItem.cells(0).controls(0) shows no text properties or anything that
poin... more >>
rows in a datagrid in bold based on the value of a field
Posted by ALI-R at 11/1/2004 1:59:11 PM
How can I make some rows (of a datagrid) in bold based on the value of a
field?
for instance if that field is "1" row should be in bold ,otherwise row is in
normal mode.
thanks for your help.
Ali-R
... more >>
|