Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Usenet User #1
HELP: Getting row column values in ASP.NET datagrid?
I have a datagrid bound to a dataset table.
Unfortunately, the table's primary key consists of not 1, but 3
columns, so I cannot correctly set the DataKeyField property of the
grid (it only allows for 1 column), and, therefore, cannot use syntax
like below in the event handlers in order to retrieve the primary key
of the row:
this.gridList.DataKeys[e.Item.ItemIndex]
I still need to be able to get the values of all 3 key columns, yet I
am not sure how. Any ideas?
TIA!
Usenet User Guest
-
Compare DataGrid Column Values
I just created an application that displays data from 2 sources in a datagrid. There are 2 repeaters nested in the datagrid (probably not the best... -
Null values in a datagrid checkbox column
I have a checkbox column in a bound datagrid that returns an error when it hits a null value: I can't modify the sql query to anticipate a null... -
How To: handle DataGrid row Click Event that passes rows column values to server-side code behind function
I've looked through many posted messages, and have tried several things but have not seemed to solve this (what you'd think would be a simple)... -
Sum of a column values in a Datagrid
Hi, I would like to know if there is a way to print 'Sum' of all the values of one of the columns in a datagrid in an ASP.net application using... -
how to Add different controls(textBox,DropDownList or some ) in the same column,based upon the value in the previous column (Say second Colum which contain dropdown with some values) ?
I am new to ASP.NET. I am facing problem with datagrid. I will explain prob now. In the datagrid the first column is name in the second... -
Phillip Williams #2
RE: HELP: Getting row column values in ASP.NET datagrid?
Place the primary keys on the grid using <asp:BoundColumn Visible=False
DataField ="PrimaryKey1" ReadOnly =True ></asp:BoundColumn> In this way you
can retrieve them and locate your records but the user would not see them. I
have an example on this link [url]http://societopia.net/samples/datagrid_4c.aspx[/url]
that works based on multiple primary keys to display a child datagrid and to
update the values in the parent grid.
--
HTH,
Phillip Williams
[url]http://www.societopia.net[/url]
[url]http://www.webswapp.com[/url]
"Usenet User" wrote:
> I have a datagrid bound to a dataset table.
>
> Unfortunately, the table's primary key consists of not 1, but 3
> columns, so I cannot correctly set the DataKeyField property of the
> grid (it only allows for 1 column), and, therefore, cannot use syntax
> like below in the event handlers in order to retrieve the primary key
> of the row:
>
> this.gridList.DataKeys[e.Item.ItemIndex]
>
> I still need to be able to get the values of all 3 key columns, yet I
> am not sure how. Any ideas?
>
> TIA!
>Phillip Williams Guest
-
Usenet User #3
Re: HELP: Getting row column values in ASP.NET datagrid?
Thank you!
On Fri, 9 Sep 2005 19:40:04 -0700, "Phillip Williams"
<Phillip.Williams@webswapp.com> wrote:
>Place the primary keys on the grid using <asp:BoundColumn Visible=False
>DataField ="PrimaryKey1" ReadOnly =True ></asp:BoundColumn> In this way you
>can retrieve them and locate your records but the user would not see them. I
>have an example on this link [url]http://societopia.net/samples/datagrid_4c.aspx[/url]
>that works based on multiple primary keys to display a child datagrid and to
>update the values in the parent grid.Usenet User Guest



Reply With Quote

