Select datagrid item programmatically in ASP.NET

Discussion in 'ASP .Net Building Controls' started by Joseph T.S.Lim, Jul 1, 2003.

  1. Hi all,

    I have a question on ASP.NET Datagrid.
    Here goes nothing :-

    I have a datagrid with a SELECTCOMMAND on the first column.
    Whenever i click on the first column, it will highlight the particular
    No problem with this. I want to know how do i select a datagrid
    item when i click on a button without clicking on the datagrid item.

    For example, when i click button A, the datagrid will select my desire
    row item
    highlight it. I want to achieve this on the Code behind, i don't want
    use the __doPostBack("gridID:_ctl?_ctl?", ""). I able to select it via
    the client script but i don't want.
    Joseph T.S.Lim, Jul 1, 2003
    1. Advertisements

  2. Joseph T.S.Lim

    Teemu Keiski Guest

    Teemu Keiski, Jul 1, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.