Rank: Advanced Member Groups: Member
Joined: 8/26/2009 Posts: 64
|
I have developed a grid with two columns as a DetailsView of one record.
First column is the field name (a static column).
Second column is the value (a custom column).
Only the second column has editable cells. I want FullRowMode=False and EnableKeyBoardNavigation=True.
But, it still allows the user to click and land on the first column which then changes it to the SelectedStyle; visually not what I prefer. In MS-Access, for example, you can Disable and Lock and column so the user can't land on it to select it.
Is that possible and, if so, how do I do it?
Note, I could not find how to change SelectedStyle individually for each column, doesn't accept a <SelectedStyle> element except in <ItemStyles>, because I ithink that setting is for the whole grid.
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Try to set the Grid's FixedColumnCount to 1. That way the first column will be "fixed" (no longer scrolls horizontally), it also switches to FixedColumnCellStyle.
Thanks
|