Re: Drilling Down to the very Data in the FormView/DataGrid

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Mon, 27 Jun 2005 08:06:24 -0700, Kivak wrote:

> Hey everyone,
>
> I know we have to be able to do this, or Microsoft was stupid. How do
> we get down to the very variables in the DataGrid and FormView? Lets
> say I have a table to hold a product ID and the product name...
>
> -----------------------
> | ID: | Name: |
> | 1 | MyProduct1 |
> | 2 | MyProduct2 |
> | 3 | MyProduct3 |
> | 4 | MyProduct4 |
> -----------------------
>
> This is from a SQL database where "ID" is from the variable
> "product_id" and "Name" is from the variable "product_name". How would
> I call a function (sort of like "SELECT") where when i clicked on the
> button it would be able to give me the value of the variable
> "product_id" of the row I clicked. In other words, if I clicked on the
> button that was next to the product called "MyProduct1" the function
> would return "1" because the variable "product_id" in that row is equal
> to 1.
>
> Does anyone know how to do that in VB.NET and ASP.NET 2.0?
First, no different in 1.1 than 2.0.
It is all about Object Oriented Programming(plus the additional difficulty
of sending the info to the web).
Imagin each cell in the grid to be an element in an array of rows.
Whatever you put in the cells is an object with some representation in the
DOM (Document Object Model) at the server (there is also a DOM at the
client (but this you access at the client in Javascript).

.



Relevant Pages

  • Re: Button to create a new tab
    ... It just occurred to me that you might not have setup the Data Validation ... Select the Data Validation cell. ... I have the sheet named "Utility" and I have placed the firing ... I assumed the client list is named "ListOfClients". ...
    (microsoft.public.excel.programming)
  • Re: Button to create a new tab
    ... "Otto Moehrbach" wrote: ... I have the sheet named "Utility" and I have placed the firing ... does fire when text is entered into the cell ... I assumed the client list is named "ListOfClients". ...
    (microsoft.public.excel.programming)
  • RE: Warehouse map in Excel Query
    ... how you decide which shelfto use when you have a new delivery. ... and also use a cell in this list set to the proper color ... in the map. ... combobox linked to your client list for selection of the client (along with ...
    (microsoft.public.excel.programming)
  • Re: Vlookup plus other function/s combinations required?
    ... Goto the menu Format>Conditional Formatting ... Set the font color to be the same as the cell fill color ... each merged range. ... If you say the client name is centered and appears in cell F1 I'm ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Vlookup plus other function/s combinations required?
    ... Goto the menu Format>Conditional Formatting ... Set the font color to be the same as the cell fill color ... each merged range. ... If you say the client name is centered and appears in cell F1 I'm ...
    (microsoft.public.excel.worksheet.functions)