Bind a data set in an HTML table
-
Hi, i really need your help in this.. can i bind a data set in an html table not a datagrid? and how can i do so..i need examples. i've created a data adapter, data set, and a data reader, after that i tried to bind the the data in the html table but it's now working :confused: Thanks
-
Hi, i really need your help in this.. can i bind a data set in an html table not a datagrid? and how can i do so..i need examples. i've created a data adapter, data set, and a data reader, after that i tried to bind the the data in the html table but it's now working :confused: Thanks
Why would you want bind to an HTML table and not a datagrid?
-
Why would you want bind to an HTML table and not a datagrid?
Because i think the html table is more flexibe than a datagrid. i want to view my results like this: First Name DataBind Last Name DataBind Address DataBind (This is for one person) not like this: Column1 Column2 Column3 DataBind DataBind DataBind DataBind DataBind DataBind DataBind DataBind DataBind (This for more than one person) do you think i can do this with a datagrid?
-
Because i think the html table is more flexibe than a datagrid. i want to view my results like this: First Name DataBind Last Name DataBind Address DataBind (This is for one person) not like this: Column1 Column2 Column3 DataBind DataBind DataBind DataBind DataBind DataBind DataBind DataBind DataBind (This for more than one person) do you think i can do this with a datagrid?
Yes, but you have to construct the datagrid yourself and not use the control that visual studio provides for you. Also, which probably makes more sense, is if you use a datareader and build the table yourself. This is much more efficient than a datagrid. Tyquaun
-
Yes, but you have to construct the datagrid yourself and not use the control that visual studio provides for you. Also, which probably makes more sense, is if you use a datareader and build the table yourself. This is much more efficient than a datagrid. Tyquaun
You can use DataList for this purpose as and provide your data to be shown in ItemTemplate tag in html .. like this put it in ItemTemplate of DataList R A M