Locking a column implementation with the style in Excel in Excel, when we moved to the last item, the first column could not be seen, then we can lock the first column or the first row In this way, no matter how many rows or how many columns we can see to ensure accuracy of data. This way we are also easy to do in PB. Specific code as follows: // locked as ID, data window dw_masterdw_master.HSplitScroll = Truedw_master.Object.DataWindow.HorizontalScrollSplit = dw_master.object.id.Width dw_master.Object.DataWindow.HorizontalScrollPosition2 = dw_master.object.id.Width