|
Thanks for that ! , it really helps. I just had another question does GridDataBoundGrid have something like a TableDescriptor which is present in a GridGroupingColumn? I am trying to see if i can add a FieldDescriptor to GridDataBoundGrid. The reason for this is i'm trying to replicate the settings that i have on the GridGroupingColumn. Any help would be much appreciated. |
We regret let you know that GridDataBoundGrid don’t have the property like GridGrouping control’s TableDescriptor. Meantime, can you please confirm us what you are trying to achieve with TableDescriptor in GridDataBoundGrid? What are your exact requirements on this?. So that, we can analyse the further and provide you the solution as earlier possible. | ||
|
Sorry I just have another issue with the card view. so i am setting the column headers . then assigning the data source , then changing to a card view . the fifth card is always empty. I've attached a screenshot of how the card view looks. I have just hidden the data on the screenshot but the fifth card isn't showing the data instead it shows checkboxes. i've added the code below as to how i am setting the column headers and initialising the grid. The data displays properly in grid view but for some reason in card view the 5th card is displaying incorrectly. |
We have analyzed your scenario and could able to understand your scenario. As per grid architecture, the boolean type column will displays as the CheckBox type column. So to change the looks of Boolean type column as textbox , set the CellType of that column to “TextBox” and CellValueType is to “string”. | ||
|
I have two columns IsNew and HasContactFlag that are booleans, but for some reason when converting to a card view it gives this mysterious problem, but in grid view it seems fine. my workaround was to convert the dataTypes to strings for the time being just so it works properly and the data is displayed correctly if you know of a workarond. I've attached the code below to show how i am creating the data table so i can use it for the gridDataBoundGrid datasource |
You can just change the cell type for the columns in your databound grid.
You can also set the Format property and the CellValueTyle property.
|