By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,491 Members | 3,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,491 IT Pros & Developers. It's quick & easy.

cell clicked on webcontrol datagrid

P: n/a
EMW
How can I detect on which cell the user has clicked on a datagrid
webcontrol?

rg,
Eric
Nov 18 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
the cell or the row?
row is easily available but is that suffiicient?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
How can I detect on which cell the user has clicked on a datagrid
webcontrol?

rg,
Eric

Nov 18 '05 #2

P: n/a
EMW
No,I need to know the cell (row,column).

rg,
Eric
"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
news:ei*************@TK2MSFTNGP11.phx.gbl...
the cell or the row?
row is easily available but is that suffiicient?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
How can I detect on which cell the user has clicked on a datagrid
webcontrol?

rg,
Eric


Nov 18 '05 #3

P: n/a
dont know if you can get that with a datagrid. you may have to use a
different interface/control

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
No,I need to know the cell (row,column).

rg,
Eric
"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
news:ei*************@TK2MSFTNGP11.phx.gbl...
the cell or the row?
row is easily available but is that suffiicient?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
How can I detect on which cell the user has clicked on a datagrid
webcontrol?

rg,
Eric



Nov 18 '05 #4

P: n/a
EMW
Then how is it done with just the row?

rg,
Eric

"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
news:ON**************@TK2MSFTNGP11.phx.gbl...
dont know if you can get that with a datagrid. you may have to use a
different interface/control

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
No,I need to know the cell (row,column).

rg,
Eric
"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
news:ei*************@TK2MSFTNGP11.phx.gbl...
the cell or the row?
row is easily available but is that suffiicient?

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
> How can I detect on which cell the user has clicked on a datagrid
> webcontrol?
>
> rg,
> Eric
>
>



Nov 18 '05 #5

P: n/a
2 things

1) in the BIND of the datagrid
this.datagrid1.DataKeyField = "YOUR_DB_KEY_FIELD";
2) in the datagrid_SelectedIndexChanged event
int MyRowID =
this.datagrid1.DataKeys[this.datagrid1.SelectedIndex].ToString();
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
Then how is it done with just the row?

rg,
Eric

"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
news:ON**************@TK2MSFTNGP11.phx.gbl...
dont know if you can get that with a datagrid. you may have to use a
different interface/control

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
No,I need to know the cell (row,column).

rg,
Eric
"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
news:ei*************@TK2MSFTNGP11.phx.gbl...
> the cell or the row?
> row is easily available but is that suffiicient?
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "EMW" <SomeOne@MicroSoftdotCom> wrote in message
> news:40**********************@dreader2.news.tiscal i.nl...
> > How can I detect on which cell the user has clicked on a datagrid
> > webcontrol?
> >
> > rg,
> > Eric
> >
> >
>
>



Nov 18 '05 #6

P: n/a
EMW
thanks!!!!
rg,
eric
"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
news:ek**************@TK2MSFTNGP10.phx.gbl...
2 things

1) in the BIND of the datagrid
this.datagrid1.DataKeyField = "YOUR_DB_KEY_FIELD";
2) in the datagrid_SelectedIndexChanged event
int MyRowID =
this.datagrid1.DataKeys[this.datagrid1.SelectedIndex].ToString();
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
Then how is it done with just the row?

rg,
Eric

"Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
news:ON**************@TK2MSFTNGP11.phx.gbl...
dont know if you can get that with a datagrid. you may have to use a
different interface/control

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"EMW" <SomeOne@MicroSoftdotCom> wrote in message
news:40**********************@dreader2.news.tiscal i.nl...
> No,I need to know the cell (row,column).
>
> rg,
> Eric
>
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> schreef in bericht
> news:ei*************@TK2MSFTNGP11.phx.gbl...
> > the cell or the row?
> > row is easily available but is that suffiicient?
> >
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > Site: http://www.Darkfalz.com
> > Blog: http://blog.Darkfalz.com
> >
> >
> > "EMW" <SomeOne@MicroSoftdotCom> wrote in message
> > news:40**********************@dreader2.news.tiscal i.nl...
> > > How can I detect on which cell the user has clicked on a datagrid > > > webcontrol?
> > >
> > > rg,
> > > Eric
> > >
> > >
> >
> >
>
>



Nov 18 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.