Hi Experts,
I am using Simple DataBinding for my Grid with Viewstate enabled.There is altogether a different layer with function having fixed parameter set and provide with the custom business object collection to be bind to the Grid.
Limitations:
1) Every other functionality need is working fine with Simple Data Binding of Grid.
2) Specific parameter only to Database layer to retreive Bussiness Object collection.No modification can be made.
Scenario:
New Column introduced in Grid which takes concatenated data from two different properties in Custom Bussiness object the displays it.Hence if we give datafield name as one Property the filtering would be applicable to data from that property only.But we need the filtering to work both the properties that act as datasource to this column.
Approach:
Customize the filter in ItemCommand event for this column.
Issues:
1) Customized the filter, set it to Grid.MasterTableView FilterExpression and called ReBind() on Grid.MasterTableView, but still not working.
2) Customized the filter, set it to Grid.MasterTableView FilterExpression and explicitly bind the grid by provided it again with datasource.Hence set the DataSource again with fixed Bussiness Object Collection and called DataBind() explicitly.
I can definetly try for Advance Binding but i want to avoid that for now because would have to modify whole page to support other functionalities related to application itself.
Both of them are not working.
Any idea would be greatly appreciated.
Regards,
Aayam Singh
I am using Simple DataBinding for my Grid with Viewstate enabled.There is altogether a different layer with function having fixed parameter set and provide with the custom business object collection to be bind to the Grid.
Limitations:
1) Every other functionality need is working fine with Simple Data Binding of Grid.
2) Specific parameter only to Database layer to retreive Bussiness Object collection.No modification can be made.
Scenario:
New Column introduced in Grid which takes concatenated data from two different properties in Custom Bussiness object the displays it.Hence if we give datafield name as one Property the filtering would be applicable to data from that property only.But we need the filtering to work both the properties that act as datasource to this column.
Approach:
Customize the filter in ItemCommand event for this column.
Issues:
1) Customized the filter, set it to Grid.MasterTableView FilterExpression and called ReBind() on Grid.MasterTableView, but still not working.
2) Customized the filter, set it to Grid.MasterTableView FilterExpression and explicitly bind the grid by provided it again with datasource.Hence set the DataSource again with fixed Bussiness Object Collection and called DataBind() explicitly.
I can definetly try for Advance Binding but i want to avoid that for now because would have to modify whole page to support other functionalities related to application itself.
Both of them are not working.
Any idea would be greatly appreciated.
Regards,
Aayam Singh