abu taher 34 Practically a Posting Shark

a msflexgrid show my data. I write code in msflexgrid_click():

txt1.Text = MSFlexGrid1.TextMatrix(MSFlexGrid1.RowSel, 0)
txt2.Text = MSFlexGrid1.TextMatrix(MSFlexGrid1.RowSel, 1)

for show data in textbox. but one error msg show:
"run time error 381
subscript out of range"
what I do now?