Ask a Question related to ASP.NET General, Design and Development.
-
grolms #1
DataView
I must recreated dataview . I am in the designer insert
dataview set datasource ... And I set before DataBind
datasource on the dataview ... How I recreated dataview.
I have dataview in class member ...
thanx
the>-----Original Message-----
>Have you recreated the DataView and set it as the
>DataSource before the DataBind() ?
>
>HTH,
>Gaz
>>>-----Original Message-----
>>Hi all,
>>sorry for my bad englisch a my bad questation . I have
>>trouble with dataview .
>>1) I have datagrid where datasource is dataview . This
>>work ok , but if I change Dataset and call DataBind,>.>>DataGrid is empty ???
>>2) I implement sorting with dataview . After I set
>>sorting and call edit and update in the datagrig , the
>>datasetitem not resolve to item on the dataset . I want
>>get identity colomn , which is not view in datagrid...
>>
>>thank you
>>
>>marek
>>
>>.
>>
>grolms Guest
-
my DataView won't sort
When I set the Sort on a DataView, it is ignored, and I can't figure out why. I'm using vb.net. After I successfully populate the DataView, I... -
ASP.NET 2.0, Dataview and Stored Procedure
Following are the stored procedure and HTML. This is a simple example - I am trying to use the stored procedure to update the data in the... -
How can I export a Dataview to Excel
I've figured out how to export a Dataset and a Datagrid, but how can I export a Dataview? Paul -
Exposing dataview
Hello all, I have composite control with button, 2 textboxes and dataview. Now I want to expose dataview control as propertie to be accessed at... -
RowFilter on DataView
I'm sure this is straight forward but it has me stumped! (I assume this can be done but cant find any online examples.) I want to filter a... -
grolms #2
DataView
Sorry for my bad englisch. I have qustation about
DatView .How this workind ? I mind , the databind is only
window to dataset . But if I add to dataview this not
added to dataset row ??? And if I in the datagrid call
edit item , then e.item.itemindex not corresponding to
dataset . where is trouble.
thanx
marek
grolms Guest
-
Alvin Bruney #3
Re: DataView
Think of the dataview as a window into a portion of the data. If you are a
looking at a picture of data you can look at it in certain ways and filter
it to bring out portions of the data of interest to you, but you can't touch
the data. Hope this picture helps you understand what is going on. For a
comprehensive book on the subject as well as other technologies related to
the data layer, see David Sceppa's book, programming Ado.Net.
"grolms" <grolms@volny.cz> wrote in message
news:01a901c34e32$60069000$a101280a@phx.gbl...> Sorry for my bad englisch. I have qustation about
> DatView .How this workind ? I mind , the databind is only
> window to dataset . But if I add to dataview this not
> added to dataset row ??? And if I in the datagrid call
> edit item , then e.item.itemindex not corresponding to
> dataset . where is trouble.
>
> thanx
> marek
Alvin Bruney Guest
-
Esperanza #4
dataView
Hello .net expert, I've made a litle reserch function which allow the user
to find a client by name
or phone number (both are string format) .
Even if I know the value exist, the datagrid return me nothing.
Any Idea what would be the problem ??
Thanks in advance !!
Esperanza
//---------------------------------------------------------------------
private void btnLookFor_Click(object sender, System.EventArgs e)
{
string strVar;
string strSelection;
strVar = this.txtLookFor.Text;
strSelection = this.RadListLookFor.SelectedItem.Text;
try
{
if (strVar.Trim()!=null)
{
//See witch radio button was click
switch(strSelection)
{
//Look by name
case "Name":
this.dataViewGPPL.RowFilter = "XABALPH like '%" + strVar + "%'";
break;
//Look by phone number
case "No tel.":
this.dataViewGPPL.RowFilter = "XTEL like '" + strVar + "'";
break;
}
this.DataGrid1.DataSource = dataViewGPPL;
this.DataGrid1.DataBind();
}
}
catch (Exception ex)
{
throw ex;
}
Esperanza Guest
-
Elton Wang #5
dataView
Hi Esperanza,
How do you fill whole data to the dataview?
which allow the user>-----Original Message-----
>Hello .net expert, I've made a litle reserch functionnothing.>to find a client by name
>or phone number (both are string format) .
>
>Even if I know the value exist, the datagrid return me------------->Any Idea what would be the problem ??
>Thanks in advance !!
>
>Esperanza
>
>//--------------------------------------------------------System.EventArgs e)>private void btnLookFor_Click(object sender,strVar + "%'";> {
>
> string strVar;
> string strSelection;
> strVar = this.txtLookFor.Text;
> strSelection = this.RadListLookFor.SelectedItem.Text;
>
> try
> {
> if (strVar.Trim()!=null)
> {
> //See witch radio button was click
> switch(strSelection)
>
> {
> //Look by name
> case "Name":
> this.dataViewGPPL.RowFilter = "XABALPH like '%" +strVar + "'";> break;
>
>
> //Look by phone number
> case "No tel.":
> this.dataViewGPPL.RowFilter = "XTEL like '" +> break;
> }
>
> this.DataGrid1.DataSource = dataViewGPPL;
> this.DataGrid1.DataBind();
>
> }
>
>
> }
>
> catch (Exception ex)
> {
> throw ex;
> }
>
>
>
>.
>Elton Wang Guest
-
Esperanza #6
Re: dataView
That was it.
I didn't fill the dataSet before.
Thanks a lot !!
Esperanza
"Elton Wang" <anonymous@discussions.microsoft.com> a écrit dans le message
de news:39e301c51f63$faa778f0$a401280a@phx.gbl...> Hi Esperanza,
>
> How do you fill whole data to the dataview?
>
>> which allow the user> >-----Original Message-----
> >Hello .net expert, I've made a litle reserch function> nothing.> >to find a client by name
> >or phone number (both are string format) .
> >
> >Even if I know the value exist, the datagrid return me> -------------> >Any Idea what would be the problem ??
> >Thanks in advance !!
> >
> >Esperanza
> >
> >//--------------------------------------------------------> System.EventArgs e)> >private void btnLookFor_Click(object sender,> strVar + "%'";> > {
> >
> > string strVar;
> > string strSelection;
> > strVar = this.txtLookFor.Text;
> > strSelection = this.RadListLookFor.SelectedItem.Text;
> >
> > try
> > {
> > if (strVar.Trim()!=null)
> > {
> > //See witch radio button was click
> > switch(strSelection)
> >
> > {
> > //Look by name
> > case "Name":
> > this.dataViewGPPL.RowFilter = "XABALPH like '%" +> strVar + "'";> > break;
> >
> >
> > //Look by phone number
> > case "No tel.":
> > this.dataViewGPPL.RowFilter = "XTEL like '" +> > break;
> > }
> >
> > this.DataGrid1.DataSource = dataViewGPPL;
> > this.DataGrid1.DataBind();
> >
> > }
> >
> >
> > }
> >
> > catch (Exception ex)
> > {
> > throw ex;
> > }
> >
> >
> >
> >.
> >
Esperanza Guest



Reply With Quote

