Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
chiragvm
Yak Posting Veteran
65 Posts |
Posted - 2006-07-28 : 09:14:35
|
i have one grid in grid i put checkbox so in all row it will reflect but when it check and pressok button i check allrow of datagrid when i checked 5 box (runtime and pres ok that time this code is run) For Each di As DataGridItem In Dgrights.Items Dim cb As CheckBox = CType(di.FindControl("chkselect"), CheckBox) If cb.Checked Then arrlist.Add(i) End If i = i + 1 Nexti use this much of codebut in every time cb.checked = false |
|
joldham
Wiseass Yak Posting Master
300 Posts |
Posted - 2006-07-28 : 14:57:50
|
Make sure you are not databinding the datagrid every time the page loads. You are probably re-binding the datagrid and therefore clearing out any of the checked values. Only bind the datagrid when "If Not Page.IsPostback then".Jeremy W. Oldham |
 |
|
|
|
|