i want the dropdownlist in Gridview Iam using ObjectDataSource
iam dng this way
please help me
This In Class(BatchCardGridClass.cs)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using MySql.Data.MySqlClient;
namespace BatchCardGrid
{
[DataObject(true)]
public class BatchCardGridClass
{
private MySqlConnection connection = new MySqlConnection(Helper.ConnectionStrings);
[DataObjectMethod(DataObjectMethodType.Select)]
public IList<batch_card_tmp> GetDrop(string ProductType)
{
List<batch_card_tmp> list = new List<batch_card_tmp>();
string query = string.Format("SELECT DISTINCT(PRODUCT_TYPE) FROM batch_card_tmp", ProductType);
MySqlCommand sqlCommand = new MySqlCommand(query, connection);
connection.Open();
MySqlDataRea ...
Go to the complete details ...