0

I have leafshape tableImage data table have image in image format

Getting data from table as

public DataSet GetLeafShape(string con)
{
        string query = "SELECT * FROM LeafShape";

        try
        {
            return SqlHelper.ExecuteDataset(con, CommandType.Text, query);               
        }
        catch (SqlException ex)
        {
            throw ex;
        }
        catch (Exception ex)
        {
            throw ex;
        }
}

I want to pass this data to gridview. How I can do it?

I try this but image is not showing. How to convert data to image?

GridViewleaf.DataSource = ds.Tables[0];
GridViewleaf.DataBind();

Thanks.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

0 Answers0