dynamicall generate the rows for dataGrid urgent......
-
hi to all i have a problem please suggest me the solution prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading.. prob2 : and the datagrid should consists of text boxs datgrid FOrmat ==================================== col1 remaiming columns heading from the above Query ================================== a textbox textbox textbox b textbox textbox textbox prob3: Insert into the table
-
hi to all i have a problem please suggest me the solution prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading.. prob2 : and the datagrid should consists of text boxs datgrid FOrmat ==================================== col1 remaiming columns heading from the above Query ================================== a textbox textbox textbox b textbox textbox textbox prob3: Insert into the table
prob2 I think you can use template field to solve this, just put the text box in a template field what do you mean by
devkranth wrote:
prob3: Insert into the table
do you mean insert into your datagrid or insert into table in database? if database just create a button in a column then select the apporaite row
-
hi to all i have a problem please suggest me the solution prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading.. prob2 : and the datagrid should consists of text boxs datgrid FOrmat ==================================== col1 remaiming columns heading from the above Query ================================== a textbox textbox textbox b textbox textbox textbox prob3: Insert into the table
devkranth wrote:
urgent......
:mad:
devkranth wrote:
prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading..
:confused: Strange ! Do you want to make the whole rows appear at the top of grid ? For prob2 and 3 use google.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
devkranth wrote:
urgent......
:mad:
devkranth wrote:
prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading..
:confused: Strange ! Do you want to make the whole rows appear at the top of grid ? For prob2 and 3 use google.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
hi thanks for u reply yeah i need to make whole rows to appear as datgrid
-
prob2 I think you can use template field to solve this, just put the text box in a template field what do you mean by
devkranth wrote:
prob3: Insert into the table
do you mean insert into your datagrid or insert into table in database? if database just create a button in a column then select the apporaite row
hi thanks for u reply i cannot add textbox the template column coz i need to add the texboxes for those columns which are generated by The query(in the sense Heading) Prob 3: i need to dump the values into the database Table.. i needto insert all the datagrid items to the database table
-
hi to all i have a problem please suggest me the solution prob1: i get some rows for one Query..(select..) i need to make this rows as my datagrid heading.. prob2 : and the datagrid should consists of text boxs datgrid FOrmat ==================================== col1 remaiming columns heading from the above Query ================================== a textbox textbox textbox b textbox textbox textbox prob3: Insert into the table
Hi, For prob1, I didn't quite understand your question. I'm not sure how you can make all the rows of the query output be the headings of the datagrid. While displaying the query results, it will be displayed in the query analyser with the headings. That you can bind to the dataset and thereafter to datagrid,so the headings will display. Please correct me if I'm wrong. For prob 2, please try with the following code: A) In the HTML window, add the following code inside the datagrid declaration: AutoGenerateColumns="False" AllowPaging="True" BackColor="#C0C0FF" HorizontalAlign="Center" Height="376px"> ]]>'> ]]>' MaxLength="30"> //Days is the column header in the sql query. On the code behind, add the following code: private void dgrdEditDel_EditCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { dgrdEditDel.EditItemIndex = e.Item.ItemIndex; FillGrid();// Function for filling the Grid } private void dgrdEditDel_CancelCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { dgrdEditDel.EditItemIndex = -1; FillGrid(); } Try the above code and let me know if you have any issues. Thanks, meeram395 :)
Meeram395