R
Rajesh.V
This is the scenario.
1. I am binding the customer table to a datagrid
2. Dont want the customerid to be shown in the datagrid, so am setting
ColumnMapping = MappingType.Hidden
3. Now when the user selects a row, its index and the tables row index is
the same, so i can access, the record
without the primarykey - customerid.
The problem now is i cant allow sorting. Does somebody know how to enable
sorting and also enable me to
identify the selected customer record. Also i dont want to set the
Gridcolumnstyle width to 0 if i dont set the columnmapping to hidden.
1. I am binding the customer table to a datagrid
2. Dont want the customerid to be shown in the datagrid, so am setting
ColumnMapping = MappingType.Hidden
3. Now when the user selects a row, its index and the tables row index is
the same, so i can access, the record
without the primarykey - customerid.
The problem now is i cant allow sorting. Does somebody know how to enable
sorting and also enable me to
identify the selected customer record. Also i dont want to set the
Gridcolumnstyle width to 0 if i dont set the columnmapping to hidden.