or
| SqlConnection connSomsys = new SqlConnection(@"Server=cmdivst004\Jason08;Integrated Security=false;Database=QuoteDB; Persist Security Info=True;User ID=cmdiapp;Password=adiadmin"); |
| SqlCommand selectCommand; |
| selectCommand = new SqlCommand("sprocgetQuoteProductTotals", connSomsys); |
| selectCommand.CommandType = CommandType.StoredProcedure; |
| SqlDataAdapter adapter = new SqlDataAdapter(selectCommand); |
| DataSet dataSet = new DataSet(); |
| adapter.Fill(dataSet); |
| this.DataSource = dataSet; |
| this.DataMember = "Table"; |
| this.textBox3.Value = dataSet.Tables[1].Rows[0][0].ToString(); |
| int textbox1val; |
| int textbox3val; |
| textbox1val = Convert.ToInt32(this.textBox1.Value); |
| textbox3val = Convert.ToInt32(this.textBox3.Value); |
| decimal percent = (textbox1val * 100) / textbox3val; |
| string textbox4val = Convert.ToString(percent); |
| this.textBox4.Value = textbox4val; |
I am trying to bind a grid from client-side. And it works fine, if it is a plain grid with GridBoundColumns. If my grid has grouping functionality, it does not work. The data is bound but grouping never works. Also, if I am using a template column, with a link button in it, the data is not bound to that column. Can you please help me on this?
Thanks.