TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
qantus
NA
1
0
Selecting Values in a DataGrid, via a checking a CheckBox
Mar 14 2004 7:48 PM
Hello, I am fairly new to C# and .NET. I am trying to select values in a DataGrid on a Button_Click event, if that particular row has a CheckBox checked. There 3 columns in my DataGrid, startTime, endTime which are both databound and a checkbox column which is not. Then these values will be passed in to by sql 2000 DB. This is what I have done so far….. private void Button_Click(object sender, System.EventArgs e) { int i = 0; CheckBox cb; foreach (DataGridItem dgi in this.DataGrid1.Items) { cb = (CheckBox) dgi.Cells[0].Controls[1]; if(cb.Checked) { //Not too sure what to do here, but no idea if the above works? } i++; } } Could some please help, any help would be much appreciated. I would like to do this in the code behind aspx.cs Thanks, Tom
Reply
Answers (
1
)
Plz Guide Me!!!
writing a function that calls a web user control in .cs file