Sorry isaackhazi, I forgot to attach code.
Main Topics
Browse All TopicsI have gridview(AspxGridview) displaying a list of names. I want to add a checkbox to the template and when a user selects a number of checkboxes and hits an 'Add' button I want to get all the rows in the gridview that were Checked.
Later I will pass this through a session variable and do the required operations.
Any idea how i can achieve this??
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Say for example I have
id name lname Check Box Field
1 ......... ............... x
2 ......... ............. X
3 ............ ............
4 ......... ............
5 ....... ............
6 ........... .........
1. Do i specify check Box field's "FieldName" = ID?
How do i use the function ASPXGridView1.GetSelectedF
to iterate through all the slected rows(say ids).
Say for example i have selected first 2 rows and hit an add button
Say I need to Iterate throught it and insert the values into a table somewhere.
I need to insert the fieldname "ID"
ASPXGridView1.GetSelectedF
How do i Do it?
Since you seem to have good knowledge regarding DevExpress controls can you please tell me how to disable a Row from being selected
based on a condition. For example I do this to chnge the colour of the row. How do I prevent it from being selected based on the same condition??
Hi
I am using ASPX gridview in which i am trying to show master detail which is working good but i the problem is that i have a check box in both master and details grid on check of master grid check box it should check all rows in a corresponding details grid. for check box i am using command column in grid columns. for which i am not finding any event on the server side. please help me in finding solution for this
thanks in advance
Rajeeva
Business Accounts
Answer for Membership
by: AfricansPosted on 2009-09-01 at 00:44:42ID: 25229287
Hi isaackhazi, .List(Of Object)
To add a checkbox to the template of ASPXGridView, click on smart tag arrow and check on Enable Selection, new check box column will be added automatically to your ASPXGridView.
To get all the rows in the ASPXGridView that were checked you can use build-in function GetSelectedFieldValues which is returned the specified fields by you for checked or selected rows as System.Collections.Generic
Good Luck