disable horizontal scrolling of datagrid

ssfftt

Well-known member
Joined
Oct 27, 2005
Messages
163
Programming Experience
1-3
does anyone know how to disable horizontal scrolling of datagrid that has databinding?
 
well, long story, i was initially looking for a way that when one row is clicked, the corresponding PK is retrieved from the db (pk is not displayed in the grid). at the end i couldnt figure it out, so i put pk in the last column in the grid. but i dont want user to c it because it means nothing for them. thats why.
 
TableStyles will help you

Read up on datagrid.tablestyles It will allow you to hide columns you don't want the user to see. You can actually hide the column or set its width to zero.

Also, look into mouseup events or doubleclick events of datagrids - they would have helped retrieve the PK without adding it to the grid.
 
Back
Top