Hi everybody. I follow this solution: http://www.infragistics.com/community/forums/t/83529.aspx (button column definition)
In this event, when I clicked on the button inside _gridview column.
- (void)tappedButton{ [_button setTitle:@"Pressed" forState:UIControlStateNormal];}
how about if i want to get _gridview infomarion such as: the row number instead change the text of button.
the source here:
http://www.infragistics.com/community/cfs-filesystemfile.ashx/__key/CommunityServer.Components.PostAttachments/00.00.46.09.38/GridButtonColumn.zip
Please help. thanks in advance.
Hi
im not at my computer, but if your button click event is in the cell, you have acces to both the grid and the path:
self.path.row
self.gridView
Hope this helps
-SteveZ
Thanks alot Stephen Zaharuk. i spent all day for this problem because "-(void)gridView:(IGGridView *)gridView didSelectRowAtPath:(IGRowPath *)path" did not work. i maybe was wrong somewhere. i will try it again. thanks Stephen Zaharuk
Hi,
If you want to select a row when they click the button, you can use this code. I just tested it with the project you sent me and it worked.
- (void)tappedButton{
[self.gridView selectRowAtPath:self.path animated:YES scrollPosition:IGGridViewScrollPositionNone];
}
Hope this helps,
thank you for your answer Stephen Zaharuk.
Your code is work. It will select a row when i clicked on the button in gridview. But if i want to get the text of other cell in the same row when i clicked on it, what i must to do Stephen Zaharuk ?
example------------------------------------------------------------------------
My Button | Peter | 21 | USA
------------------------------------------------------------------------
When i click on button i want to get the text: Peterthank you Stephen Zaharuk
Based on your answer, I have found my solution for this problem,Stephen Zaharuk.
i based on the row is selected, ex:row 1, i will find the value correct with the row 1 in my array(ex:array[1]) . after that, i can update to the database via the value has been returned(in the array)
You have helped me a lot.
thank you thousand times,Stephen Zaharuk.