Show search results

G

Guest

Hi

does anyone know if it's possible in .NET to display a multicolumn list like in MSAccess? I'm building an application in which a user can enter a search text and the application will then show a list of results that match the search text. But I want to display more than one column (ie. company name, address, telephone, etc.). I was able to do this bu using a datagrid but that's not what I want because I can't set the column width of the datagrid.

Is it possible in .NET

Thx
Maurice
 
J

James P

Infragistics has a web combo control that will allow you to do this. Go to
http://www.infragistics.com

James
Maurice said:
Hi,

does anyone know if it's possible in .NET to display a multicolumn list
like in MSAccess? I'm building an application in which a user can enter a
search text and the application will then show a list of results that match
the search text. But I want to display more than one column (ie. company
name, address, telephone, etc.). I was able to do this bu using a datagrid
but that's not what I want because I can't set the column width of the
datagrid.
 
P

Phill

Hi,

Have a look at the TableStyles member of the datagrid and the associated
DataGridColumnStyle class (you can set details about the columns including
width)...Try something similar to the following:

Dim dgcs As DataGridColumnStyle

For Each dgcs In DataGrid1.TableStyles
If dgcs.HeaderText = "Name" Then
dgcs.Width = 200
End If
If dgcs.HeaderText = "Description" Then
dgcs.Width = 400
End If
Next

Phill


Maurice said:
Hi,

does anyone know if it's possible in .NET to display a multicolumn list
like in MSAccess? I'm building an application in which a user can enter a
search text and the application will then show a list of results that match
the search text. But I want to display more than one column (ie. company
name, address, telephone, etc.). I was able to do this bu using a datagrid
but that's not what I want because I can't set the column width of the
datagrid.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top