I have 5X7 led dot matrix. But I am confused, how to connect it. Because it has 7 pin both the side. So, I am not going to differentiate that which is Row and column pin.
You will need to know the pinout of the display. The physical wiring of any device may be completely different from the logical wiring of the device. This is for reasons of manufacturing simplicicty, amongst others. That's why we call them "schematics".
As the commenters have said, look up the data sheet of the device, and that will reveal the pinout. Be sure that you understand from the diagram which end of the device is which, and be sure to work out whether, in the diagram, you're looking at the device from above or below.