Can anyone teach me how to calculate a mouse click? I need to do a data insertion into MSFlexGrid.

The flow is like this:

1:the data will read a text file and input all the data into column 0

2: when user wants to input again, it will be put into column 1

so....it will be like this

first data insertion

|Column 0|Column 1|Column 2|

|DATA | | |

|DATA | | |

|DATA | | |

|DATA | | |

second click

|Column 0|Column 1|Column 2|

|DATA |DATA | |

|DATA |DATA | |

|DATA |DATA | |

|DATA |DATA | |

third click

|Column 0|Column 1|Column 2|

|DATA |DATA |DATA |

|DATA |DATA |DATA |

|DATA |DATA |DATA |

|DATA |DATA |DATA |

and so on....thank you in advance....your help is much appreciated.....thank you