hi, i tried to add a datagrid in asp.net. when i use the code;
Datagrid1.DataSource = Dataset11.tblCustomer
I can't see the datagrid?? what code should i write?? or what should I do??
Printable View
hi, i tried to add a datagrid in asp.net. when i use the code;
Datagrid1.DataSource = Dataset11.tblCustomer
I can't see the datagrid?? what code should i write?? or what should I do??
Shouldn't that be:
VB Code:
Datagrid1.DataSource = Dataset11.Tables("tblCustomer")
?
Try withQuote:
Originally Posted by Bluei2
Code:DataGrid1.DataSource = Dataset11.Tables["tblCustomer"].DefaultView;
DataGrid1.DataBind();