Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Joseph T.S.Lim #1
Select datagrid item programmatically in ASP.NET
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
item.
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
to
use the __doPostBack("gridID:_ctl?_ctl?", ""). I able to select it via
the client script but i don't want.
Joseph T.S.Lim Guest
-
How to select some settings programmatically at startup?
I developed a plugin which performs some stuff upon a PDF being opened. I would like to add at least one action: "clicking" the option called "Click... -
xml - how to select next item in loop?
Hello, Sorry to crosspost, just didn't know which group was more relevant. I am importing an xml file into my flash and assigning the value... -
Change style of a single row of the item list of datagrid, based on a field value of current item...
Sorry for the long subject guys, but I don't know how better I can resume the matter... Anyway, I have my datagrid showing items of an order. I... -
Programmatically Adding An Item To The DataList
Hi all, I've a DataList control and it's DataBound by a SqlDataReader... The Reader returns say 3 records and as expected the datalist shows 3... -
Programmatically Selecting Item in Radio Button List
I have created a radio button list programmatically. C# SqlConnection conn = new SqlConnection("data source=localhost; integrated security=true;... -
Teemu Keiski #2
Re: Select datagrid item programmatically in ASP.NET
One way is just to set the DataGrid's SelectedIndex property as you wish.
--
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
[url]http://www.mansoft.fi[/url]
ASP.NET Forums Moderator, [url]www.asp.net[/url]
AspAlliance Columnist, [url]www.aspalliance.com[/url]
Email:
[email]joteke@aspalliance.com[/email]
"Joseph T.S.Lim" <joseph_net@hotmail.com> wrote in message
news:uRk%23Cg3PDHA.2676@TK2MSFTNGP10.phx.gbl...via> 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
> item.
> 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
> to
> use the __doPostBack("gridID:_ctl?_ctl?", ""). I able to select it> the client script but i don't want.
>
>
Teemu Keiski Guest



Reply With Quote

