gridview

ListView UWP Drag Reorder doesn't fire Drop events

大兔子大兔子 提交于 2020-01-04 07:01:16
问题 I am attempting to reorder a ListView in my UWP project. <ListView Grid.Row="1" Name="List" Margin="12, 0, 12, 0" ItemTemplate="{StaticResource ListDataTemplate}" SelectionMode="None" IsItemClickEnabled="True" ItemClick="List_ItemClick" AllowDrop="True" CanReorderItems="True" ReorderMode="Enabled" DropCompleted="List_DropCompleted" /> In Code behind: private void List_DropCompleted(UIElement sender,DropCompletedEventArgs args) { UseManualOrder = true; } The UI Works great. I can drag and

how to track in gridview whether filter is applied or not in extjs?

感情迁移 提交于 2020-01-04 06:45:24
问题 My task is to put an image on the extjs grid column header whenever filter is applied in that column. When filter is cleared remove the image from the grid column header. How to achieve this in extjs 3? 回答1: In ExtJS 3.4 when filter is active on a column .ux-filtered-column class is added to the header cell. Easiest way is to add custom style for this class. 回答2: GridView has a reference to the grid it is used by. Hence, you could use this.grid.store.isFiltered() to check whether store is

How to make Out-GridView show rows?

亡梦爱人 提交于 2020-01-04 06:36:30
问题 I have a PowerShell table with 55 rows: > $ds.tables[0].rows.count 55 When I display it in the command line, it displays fine: > $ds.tables[0] FIELD1 FIELD2 ------ ------ r1v1 r1v2 etc etc However, when I try pipelining it to Out-GridView ( ogv ), I get a blank grid, with the two field headers, but absolutley no rows ! How do I display the rows from my table in a PowerShell Out-GridView ? EDIT: As requested, here is the code: $provider = "Provider=Search.CollatorDSO;Extended Properties=

How to disable scrolling in GridView?

别等时光非礼了梦想. 提交于 2020-01-04 06:03:21
问题 My application has a GridView. It already has a onItemClickListener and onItemLongClickListener. I would like to disable the scrolling in the GridView now. With the help of https://stackoverflow.com/a/6496632/985025 I have added an onTouchListener as shown below: mGridView.setOnItemClickListener(this); mGridView.setOnItemLongClickListener(this); mGridView.setOnTouchListener(new OnTouchListener(){ @Override public boolean onTouch(View arg0, MotionEvent arg1) { if(arg1.getAction() ==

How to disable scrolling in GridView?

好久不见. 提交于 2020-01-04 06:03:20
问题 My application has a GridView. It already has a onItemClickListener and onItemLongClickListener. I would like to disable the scrolling in the GridView now. With the help of https://stackoverflow.com/a/6496632/985025 I have added an onTouchListener as shown below: mGridView.setOnItemClickListener(this); mGridView.setOnItemLongClickListener(this); mGridView.setOnTouchListener(new OnTouchListener(){ @Override public boolean onTouch(View arg0, MotionEvent arg1) { if(arg1.getAction() ==

How to show empty data row in gridview control

て烟熏妆下的殇ゞ 提交于 2020-01-04 05:14:15
问题 Here I am working with gridview here is the gidview binding conn = new SqlConnection(strconnection); string squery = "sql query"; da = new SqlDataAdapter(squery, conn); ds = new DataSet(); da.Fill(ds, "tbl1"); GridView1.DataSource = ds; GridView1.DataBind(); This the gridview control asp code <asp:GridView ID="GridView1" runat="server" GridLines="None" HeaderStyle-CssClass="grid_header" RowStyle-CssClass="grid_item" RowStyle-Height="30px" AutoGenerateColumns="false" Width="775px"

The server tag is not well formed

余生长醉 提交于 2020-01-04 03:38:09
问题 I have the following image button on the GridView and I want to call the OnClientClick to call javascript method with passing a parameter. I am getting Server Tag is not well formed error. I tried changing double quotes to single quote etc, still the same issue. OnClientClick="return ConfirmOnDelete('<%#Eval("Name")%>');" <asp:ImageButton ID="imgDelete" CommandName="Delete" ImageUrl="~/images/fbclose.png" AlternateText="Delete" runat="server" OnClientClick="return ConfirmOnDelete('<%#Eval(

How to merge two cells in gridview

痴心易碎 提交于 2020-01-04 03:03:47
问题 I have some data in a gridview, in this format: A B 1 2 adeel 3 4 sml Now I want to merge the row with the empty cell under the B column. How would I do this? 回答1: to merge the rows in a same column, you choule use the code like this : public static void GroupRows(GridView GridView1, int cellNum) { int i = 0, rowSpanNum = 1; while (i < GridView1.Rows.Count - 1) { GridViewRow gvr = GridView1.Rows[i]; for (++i; i < GridView1.Rows.Count; i++) { GridViewRow gvrNext = GridView1.Rows[i]; if (gvr

How do I get Gridview underlying datasource?

梦想的初衷 提交于 2020-01-03 20:02:36
问题 i have gridview in my asp.net web application under framework 3.5. I am binding the gridview with List. Inside the grid there is update and delete functionalities which are running fine. But my save functionality, for which i decided to extract the list back from the datasource and then through loop i will insert the new list to database. But when i tried to get it conventional way it returned me null. I tried the following ways to retrieve the List back. 1. List<MyClass> list = (List<MyClass

How do I get Gridview underlying datasource?

廉价感情. 提交于 2020-01-03 20:01:12
问题 i have gridview in my asp.net web application under framework 3.5. I am binding the gridview with List. Inside the grid there is update and delete functionalities which are running fine. But my save functionality, for which i decided to extract the list back from the datasource and then through loop i will insert the new list to database. But when i tried to get it conventional way it returned me null. I tried the following ways to retrieve the List back. 1. List<MyClass> list = (List<MyClass