471,582 Members | 1,363 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,582 software developers and data experts.

asp.net 2: SqlDatasource - Is the selected data accessible in code?


Under asp.net 2, if I define SqlDatasource and bind it to a grid, is
selected data accessible in code? Eg. if I select s single row from
the grid, can I go to the base data from the SqlDatasource and get the
specific row? If yes, then point me to an example.

Also, I know that can selected grid row or I can select the single row
from the database.

Thanks

Jan 21 '07 #1
1 3224
You can access data as they are presented in the grid rows via the
FridView.Rows collection. If you insist on looking in the datatable where
the data come from, this article may help you:

http://msmvps.com/blogs/egoldin/arch...atasource.aspx

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"David" <dm***@sbcglobal.netwrote in message
news:h5********************************@4ax.com...
>
Under asp.net 2, if I define SqlDatasource and bind it to a grid, is
selected data accessible in code? Eg. if I select s single row from
the grid, can I go to the base data from the SqlDatasource and get the
specific row? If yes, then point me to an example.

Also, I know that can selected grid row or I can select the single row
from the database.

Thanks

Jan 21 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by cpnet | last post: by
reply views Thread by sravan_reddy001 | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by lumer26 | last post: by
1 post views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.