Hi,
I populate my grid data with the given client ID, as follows:
private void LoadCharges()
{
int _ClientId = 0;
List<ClientCharges> clientCharges = ClientChargesManager.QueryClientChargesByClientId(_ClientId);
rgCharges.DataSource = clientCharges;
rgCharges.DataBind();
}
I am looking for a blank grid that says something like "No charges found", so I tried sending it a client ID of 0 (this client ID does not exist), but then the grid is not even populated. It doesn't even appear.
Here is my grid:
<radG:RadGrid
ID="rgCharges"
AutoGenerateColumns="false"
GridLines="None"
runat="server">
<MasterTableView NoMasterRecordsText="Nothing.." NoDetailRecordsText="None" DataKeyNames="ClientChargeID">
<Columns>
<radG:GridBoundColumn DataField="ChargeAmount" HeaderText="Charge Amount" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="right" UniqueName="ChargeAmount" DataFormatString="{0:###,###.00}">
</radG:GridBoundColumn>
</Columns>
</MasterTableView>
</radG:RadGrid>
Please help.
Thanks
Brendan