Yes, EmptyDataTemplate will work fine..

Syntax : Empty data Row template to specify that no data exists:
<EmptyDataTemplate>
                <span class="redstyle">You have not subscribed for any
reports.</span>
 </EmptyDataTemplate>


On Mon, Jan 24, 2011 at 11:53 AM, nnksoft <[email protected]> wrote:

> Yes, it can be done by setting EmptyTemplate for Grid. If no data, HTML
> text inside EmptyTemplace item willl appear. Does it help?
>
>
> On Mon, Jan 24, 2011 at 11:27 AM, ravindra kumar <[email protected]>wrote:
>
>> gridview.datasource=null;
>> drdview.databind();
>>
>>
>>
>> On Sun, Jan 23, 2011 at 11:25 AM, Musthaan <[email protected]> wrote:
>>
>>> i am new in asp.net .
>>>
>>> i am trying gridview for display details.
>>> if resut hava datas then no problem it work fine .
>>> but search result has no data then grid is not visible .
>>>
>>> if no data in grid then  grid display with header captions.
>>> how it possible ?
>>> please help me !
>>
>>
>>
>>
>> --
>> Ravindra kumar
>> delhi
>>
>
>
>


-- 
Regards,
Anil Kumar.T

Reply via email to