jeudi 9 avril 2015

select multiple cells in grid view

i want to display data in grid format and i should allow user to select multiple cells ,it should not select like rectangle. selection should be contiguous adjacent cells. below code is allowing me to select the multiple cells in rectangle format but i don't need like that , i need a selection like a note pad.


I want the following cells to be selected in a string grid with 7 columns and 10 rows for example:



Cell[Column][Row]
Cell[2][3];
Cell[3][3];
Cell[4][3];
Cell[5][3];
Cell[6][3];
Cell[0][4];
Cell[1][4];
Cell[2][4];
Cell[3][4];
Cell[4][4];


here above cells have to be in selected state.


Aucun commentaire:

Enregistrer un commentaire