IsRowChecker Checkbox column only last one selected in postback data

1 reply. Last post: January 8, 2012 11:05 PM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
davidpendryMember

Yet again i find myself battling with a trivial task..

I have a grid with a column of type rowchecker. When the postback occurs due a button being clicked, only the last selected row in the IsRowChecker column is being returned with a call to the:

ArrayList checkedIDs = wgMyGrid.RootTable.GetCheckedRows(); 

The only way i can select all the rows is by using the column header checkbox, which selects all the rows or using the [shift] with mouse click. Selecting/Unselecting the rows is only returning the last one selected. I dont have the time to post the code.


IsRowChecker column below..

<ISWebGrid:WebGridColumn
AllowGrouping="Yes"
AllowSizing="No"
AllowSorting="No"
Bound="False"
ColumnType="CheckBox"
EditType="Checkbox"
Name="PublishRow"
Caption="Publish"
ShowInSelectColumns="Yes"
ButtonAutoPostback="true"
IsRowChecker="true"
IsRowHeader="true"
AllowMultiLine="true"
Width="25px">
</ISWebGrid:WebGridColumn>


Anyone any ideas ??


Regards


David

All times are GMT -5. The time now is 8:07 PM.
Previous Next