datagrid question...
hi, im trying to check is there any data binded to my datagrid from database, if there is no data, i need to show a label to user... but i dont know what is the properties to check... can any1 help? thanks...
here is some example that i tried b4....
dgData.DataBind()
if dgData.Items is nothing then
lblNo.Text="No record found"
end if
dgData.DataBind()
if dgData.DataBind() is nothing then
lblNo.Text="No record found"
end if
.
.
.
i think some of the code above is "stupid" for others... but... im stupid... Pls help, thanks again.
Regards
life's Ng
|